summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-03-06 14:52:23 +0100
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-03-07 08:47:53 +0100
commit2cdbfef10916be6062a4df06ddbe53f4d27a8026 (patch)
treec35d0139f0376f0c8acfeeaf368c538c9cbd3c3b /lib/gitlab
parent0649a1f8359930b84d7295272b1f8e32c32c0d2c (diff)
downloadgitlab-ce-2cdbfef10916be6062a4df06ddbe53f4d27a8026.tar.gz
Move Repository#HasLocalBranches to OPT_OUT
Part of gitlab-org/gitaly#616
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 21c79a7a550..90584b08f17 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -228,7 +228,7 @@ module Gitlab
end
def has_local_branches?
- gitaly_migrate(:has_local_branches) do |is_enabled|
+ gitaly_migrate(:has_local_branches, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_repository_client.has_local_branches?
else