BigW Consortium Gitlab

Commit 68b5cd71 by Douwe Maan

Merge branch 'gitaly-import-project-opt-out' into 'master'

Move ImportProject to OptOut in Gitaly See merge request gitlab-org/gitlab-ce!19090
parents 18ed49c9 2a781f7f
......@@ -53,7 +53,7 @@ module Gitlab
# Import project via git clone --bare
# URL must be publicly cloneable
def import_project(source, timeout)
Gitlab::GitalyClient.migrate(:import_repository) do |is_enabled|
Gitlab::GitalyClient.migrate(:import_repository, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_import_repository(source)
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