Forking repositories is handled by Gitaly by default

Initial Rails implementation was introduced in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16018, and
acceptance testing was done in
https://gitlab.com/gitlab-org/gitaly/issues/881

Part of https://gitlab.com/gitlab-org/gitaly/issues/817
This commit is contained in:
Zeger-Jan van de Weg 2018-05-02 10:38:12 +02:00
parent 3fcb9c115d
commit 2bbfa4cc66
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Gitaly handles repository forks by default
merge_request:
author:
type: other

View file

@ -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