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:
authorJames Lopez <james@jameslopez.es>2016-06-14 13:47:07 +0300
committerJames Lopez <james@jameslopez.es>2016-06-14 13:47:07 +0300
commit3f7ed550110daaec8a76af7146b701dfc0210e60 (patch)
tree25fa93f0c306f8ea2ab9b28f26dfb11bb7551184 /app/workers
parent1ea44ee75077d67f3f24a288cc44d7c275ba8581 (diff)
lots of refactoring to reuse import service
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/project_import_worker.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/project_import_worker.rb b/app/workers/project_import_worker.rb
index b2902c3278e..b18d453702e 100644
--- a/app/workers/project_import_worker.rb
+++ b/app/workers/project_import_worker.rb
@@ -7,10 +7,10 @@ class ProjectImportWorker
def perform(current_user_id, tmp_file, namespace_id, path)
current_user = User.find(current_user_id)
- project = Gitlab::ImportExport::ImportService.execute(archive_file: tmp_file,
- owner: current_user,
- namespace_id: namespace_id,
- project_path: path)
+ project = Gitlab::ImportExport::Importer.execute(archive_file: tmp_file,
+ owner: current_user,
+ namespace_id: namespace_id,
+ project_path: path)
if project
project.repository.after_import
else