Commit 2a7d011a authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'zj-branch-containing-sha-opt-out' into 'master'

Branch with a commit detection defaults to Gitaly

See merge request gitlab-org/gitlab-ce!18304
parents 78fd1dd9 4d3f0998
---
title: Detecting branchnames containing a commit uses Gitaly by default
merge_request:
author:
type: performance
...@@ -1385,7 +1385,8 @@ module Gitlab ...@@ -1385,7 +1385,8 @@ module Gitlab
end end
def branch_names_contains_sha(sha) 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 if is_enabled
gitaly_ref_client.branch_names_contains_sha(sha) gitaly_ref_client.branch_names_contains_sha(sha)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment