summaryrefslogtreecommitdiff
path: root/lib/gitlab/bare_repository_import
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-01-03 09:10:43 +0100
committerJames Lopez <james@jameslopez.es>2018-01-03 09:10:43 +0100
commitf2d4b24a9404a1439d4f4c983fdf9ca000ac6e21 (patch)
treefa9f3bd98f0f44a2afea85ea03f18afe1fbe5a2f /lib/gitlab/bare_repository_import
parent11d0083e95b9dc22c27f368e38058ec3e0a40f46 (diff)
downloadgitlab-ce-f2d4b24a9404a1439d4f4c983fdf9ca000ac6e21.tar.gz
refactor code to use new import type
Diffstat (limited to 'lib/gitlab/bare_repository_import')
-rw-r--r--lib/gitlab/bare_repository_import/importer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/bare_repository_import/importer.rb b/lib/gitlab/bare_repository_import/importer.rb
index b0b349088d9..64e41d42709 100644
--- a/lib/gitlab/bare_repository_import/importer.rb
+++ b/lib/gitlab/bare_repository_import/importer.rb
@@ -56,8 +56,7 @@ module Gitlab
path: project_name,
skip_disk_validation: true,
skip_wiki: bare_repo.wiki_exists?,
- skip_import: true,
- import_type: 'gitlab_project',
+ import_type: 'bare_repository',
namespace_id: group&.id).execute
if project.persisted? && mv_repo(project)