diff options
-rw-r--r-- | changelogs/unreleased/zj-branch-containing-sha-opt-out.yml | 5 | ||||
-rw-r--r-- | lib/gitlab/git/repository.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/changelogs/unreleased/zj-branch-containing-sha-opt-out.yml b/changelogs/unreleased/zj-branch-containing-sha-opt-out.yml new file mode 100644 index 00000000000..3d11ee588ae --- /dev/null +++ b/changelogs/unreleased/zj-branch-containing-sha-opt-out.yml @@ -0,0 +1,5 @@ +--- +title: Detecting branchnames containing a commit uses Gitaly by default +merge_request: +author: +type: performance diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 82a4aaef3fc..1a58db4e63e 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 |