Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-11 10:13:02 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-11 10:13:02 +0300
commit4d3f0998e0baae708a1b3af7cb6f059ef9257047 (patch)
tree97da821caafd94ec8ff36205a5840b7f28fc76ac /lib/gitlab/git
parent863e1a7a053c8b193fb945f24eff25b96079b2c2 (diff)
Branch with a commit detection defaults to Gitaly
By default this was an OPT_IN RPC, and now graduates to OPT_OUT as the acceptance testing was successful in: https://gitlab.com/gitlab-org/gitaly/issues/1008 This follows the conventions of our [migration process](https://gitlab.com/gitlab-org/gitaly/blob/master/doc/MIGRATION_PROCESS.md)
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/repository.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index f1b575bd872..9346697746b 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -1385,7 +1385,8 @@ module Gitlab
end
def branch_names_contains_sha(sha)
- gitaly_migrate(:branch_names_contains_sha) do |is_enabled|
+ gitaly_migrate(:branch_names_contains_sha,
+ status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_ref_client.branch_names_contains_sha(sha)
else