From 2bbfa4cc6661abeb4b2037ed4bf054db6c202938 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Wed, 2 May 2018 10:38:12 +0200 Subject: 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 --- changelogs/unreleased/zj-fork-opt-out.yml | 5 +++++ lib/gitlab/git/gitlab_projects.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/zj-fork-opt-out.yml diff --git a/changelogs/unreleased/zj-fork-opt-out.yml b/changelogs/unreleased/zj-fork-opt-out.yml new file mode 100644 index 00000000000..56bf6b8b0f6 --- /dev/null +++ b/changelogs/unreleased/zj-fork-opt-out.yml @@ -0,0 +1,5 @@ +--- +title: Gitaly handles repository forks by default +merge_request: +author: +type: other diff --git a/lib/gitlab/git/gitlab_projects.rb b/lib/gitlab/git/gitlab_projects.rb index 099709620b3..68373460d23 100644 --- a/lib/gitlab/git/gitlab_projects.rb +++ b/lib/gitlab/git/gitlab_projects.rb @@ -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 -- cgit v1.2.3