From a9ab6dbc637bc0a531760b0425d655a507827db3 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Thu, 17 Jan 2019 00:35:40 -0800 Subject: Refactor use of Shell.import_repository for Wikis The previous behavior would pass in a list of parameters to Shell, but we can improve this by using the WikiFormatter and Project models to give us the same information. --- app/services/projects/import_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/projects/import_service.rb') diff --git a/app/services/projects/import_service.rb b/app/services/projects/import_service.rb index 6f06c6a3864..7214e9efaf6 100644 --- a/app/services/projects/import_service.rb +++ b/app/services/projects/import_service.rb @@ -73,7 +73,7 @@ module Projects project.ensure_repository project.repository.fetch_as_mirror(project.import_url, refmap: refmap) else - gitlab_shell.import_repository(project.repository_storage, project.disk_path, project.import_url, project.full_path) + gitlab_shell.import_project_repository(project) end rescue Gitlab::Shell::Error => e # Expire cache to prevent scenarios such as: -- cgit v1.2.1