Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-02 11:38:12 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-02 19:29:39 +0300
commit2bbfa4cc6661abeb4b2037ed4bf054db6c202938 (patch)
tree01c0fa99dfc68a8cb2324057977404d9e9e7d188
parent3fcb9c115d776feba3f71fb58359a3935edfda9b (diff)
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
-rw-r--r--changelogs/unreleased/zj-fork-opt-out.yml5
-rw-r--r--lib/gitlab/git/gitlab_projects.rb3
2 files changed, 7 insertions, 1 deletions
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