diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-09 09:32:21 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-09 09:32:21 +0100 |
commit | 90d74ce2dfbb189c29ad01b8eff20ad0b9713b2c (patch) | |
tree | 5877bcb05bc8be7cb925132887e6805573fd8a35 /lib | |
parent | 20ac30a705f4edd22efd934ecf68b58557f868db (diff) | |
download | gitlab-ce-90d74ce2dfbb189c29ad01b8eff20ad0b9713b2c.tar.gz |
Repository Exists check is OPT_OUT for Gitaly
Moving more git operations to be executed by Gitaly, now the check if a
repository exists is an opt out endpoint.
Can be disabled, for the time being, by performing in the rails console:
> Feature.get('gitaly_repository_exists').disable
=> true
Part of gitlab-org/gitaly#314
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index d236e1b03e6..359547cf63d 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -105,7 +105,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 |