diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-10 01:41:07 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-10 01:41:07 +0300 |
commit | afe867921cab046a34bc463840c6e9f5d51f1f70 (patch) | |
tree | dae8e191eb1ba98217f277cb1326297ee84df82b /app/workers | |
parent | d96c24d81590dd6da237f131d4c074b70e64e030 (diff) |
Rename branches_exist? -> includes_branches?
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_receive.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index 0865c2f0e0e..d8dfbc0faf7 100644 --- a/app/workers/post_receive.rb +++ b/app/workers/post_receive.rb @@ -43,7 +43,7 @@ class PostReceive return false unless user # Expire the branches cache so we have updated data for this push - post_received.project.repository.expire_branches_cache if post_received.branches_exist? + post_received.project.repository.expire_branches_cache if post_received.includes_branches? post_received.enum_for(:changes_refs).with_index do |(oldrev, newrev, ref), index| service_klass = |