summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 12:18:03 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 12:18:03 -0700
commit99fcb80eb705c47fe7d6d5c7a250de8c00f71146 (patch)
treeec59e7d001bea4b973117bf8b66ed0570fd87f21 /lib
parent6199da0cb49d2e30071d2bbb08735ce2265c7aff (diff)
parentf21bd9b1d59f276db6b83c126960ecd3d7a30dbd (diff)
downloadgitlab-ce-99fcb80eb705c47fe7d6d5c7a250de8c00f71146.tar.gz
Merge pull request #9021 from nicklegr/faster_auto_merge
Faster merge request processing for large repository
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/satellite/satellite.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/satellite/satellite.rb b/lib/gitlab/satellite/satellite.rb
index 70125d539da..f24c6199c44 100644
--- a/lib/gitlab/satellite/satellite.rb
+++ b/lib/gitlab/satellite/satellite.rb
@@ -99,11 +99,7 @@ module Gitlab
heads = repo.heads.map(&:name)
# update or create the parking branch
- if heads.include? PARKING_BRANCH
- repo.git.checkout({}, PARKING_BRANCH)
- else
- repo.git.checkout(default_options({ b: true }), PARKING_BRANCH)
- end
+ repo.git.checkout(default_options({ B: true }), PARKING_BRANCH)
# remove the parking branch from the list of heads ...
heads.delete(PARKING_BRANCH)