Commit 639cf561 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'zj-fork-opt-out' into 'master'

Forking repositories is handled by Gitaly by default

See merge request gitlab-org/gitlab-ce!18679
parents e36ae14f 2bbfa4cc
---
title: Gitaly handles repository forks by default
merge_request:
author:
type: other
......@@ -63,7 +63,8 @@ module Gitlab
end
def fork_repository(new_shard_name, new_repository_relative_path)
Gitlab::GitalyClient.migrate(:fork_repository) do |is_enabled|
Gitlab::GitalyClient.migrate(:fork_repository,
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_fork_repository(new_shard_name, new_repository_relative_path)
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