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:
authorYorick Peterse <yorickpeterse@gmail.com>2017-10-18 22:46:05 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-08 01:25:03 +0300
commit6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (patch)
tree415639ff14183a4914dac69fcc400806cb477525 /app/services
parent4dfe26cd8b6863b7e6c81f5c280cdafe9b6e17b6 (diff)
Replace old GH importer with the parallel importer
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/import_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/projects/import_service.rb b/app/services/projects/import_service.rb
index 20eee4fd439..c950da44aba 100644
--- a/app/services/projects/import_service.rb
+++ b/app/services/projects/import_service.rb
@@ -87,6 +87,10 @@ module Projects
end
end
+ def importer_class
+ Gitlab::ImportSources.importer(project.import_type)
+ end
+
def has_importer?
Gitlab::ImportSources.importer_names.include?(project.import_type)
end
@@ -95,10 +99,6 @@ module Projects
importer_class.new(project)
end
- def importer_class
- Gitlab::ImportSources.importer(project.import_type)
- end
-
def unknown_url?
project.import_url == Project::UNKNOWN_IMPORT_URL
end