summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-01-16 22:40:23 -0800
committerStan Hu <stanhu@gmail.com>2019-02-05 21:33:09 -0800
commit6bac612dc4545abcbbfc86477417f711e02427ba (patch)
treea1dd2e6e3dc88715101e0ad0f2261c1dacd414be /app/workers
parent82b6e5378ab7c63b166229388f0a9b1bd79319c7 (diff)
downloadgitlab-ce-6bac612dc4545abcbbfc86477417f711e02427ba.tar.gz
Clean up Shell.fork_repository
Use project models instead of a list of parameters.
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/repository_fork_worker.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/workers/repository_fork_worker.rb b/app/workers/repository_fork_worker.rb
index 453fca44ea2..a9b88a133be 100644
--- a/app/workers/repository_fork_worker.rb
+++ b/app/workers/repository_fork_worker.rb
@@ -25,9 +25,7 @@ class RepositoryForkWorker
Gitlab::Metrics.add_event(:fork_repository)
- result = gitlab_shell.fork_repository(
- source_project.repository_storage, source_project.disk_path, source_project.full_path,
- target_project.repository_storage, target_project.disk_path, target_project.full_path)
+ result = gitlab_shell.fork_repository(source_project, target_project)
raise "Unable to fork project #{target_project.id} for repository #{source_project.disk_path} -> #{target_project.disk_path}" unless result