summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-01-25 13:59:35 +0000
committerDouwe Maan <douwe@gitlab.com>2018-01-25 13:59:35 +0000
commit9e6ce87727848a3f745d5e8bcfcc867e652ea23d (patch)
tree96f5b1ce007f530d3dac35bb98de17b06bcbeb11
parentd7d6bad11387ecc8efadb6c94d1a94c95b63f086 (diff)
downloadgitlab-ce-9e6ce87727848a3f745d5e8bcfcc867e652ea23d.tar.gz
Make Gitaly RepositoryExists opt-out
-rw-r--r--changelogs/unreleased/gitaly-repo-exists.yml5
-rw-r--r--lib/gitlab/git/repository.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/gitaly-repo-exists.yml b/changelogs/unreleased/gitaly-repo-exists.yml
new file mode 100644
index 00000000000..a9eb42a2038
--- /dev/null
+++ b/changelogs/unreleased/gitaly-repo-exists.yml
@@ -0,0 +1,5 @@
+---
+title: Make Gitaly RepositoryExists opt-out
+merge_request: 16680
+author:
+type: other
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index d6c0980255f..6ecb3ad6c70 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -133,7 +133,7 @@ module Gitlab
end
def exists?
- Gitlab::GitalyClient.migrate(:repository_exists) do |enabled|
+ Gitlab::GitalyClient.migrate(:repository_exists, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |enabled|
if enabled
gitaly_repository_client.exists?
else