diff options
author | James Lopez <james@jameslopez.es> | 2016-06-14 12:47:07 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-14 12:47:07 +0200 |
commit | 3f7ed550110daaec8a76af7146b701dfc0210e60 (patch) | |
tree | 25fa93f0c306f8ea2ab9b28f26dfb11bb7551184 /app/workers | |
parent | 1ea44ee75077d67f3f24a288cc44d7c275ba8581 (diff) | |
download | gitlab-ce-3f7ed550110daaec8a76af7146b701dfc0210e60.tar.gz |
lots of refactoring to reuse import service
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/project_import_worker.rb | 8 |
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 |