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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-12-21 18:58:36 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-01-03 21:13:32 +0300
commit93eba91df9af083ea80b3b8ab01986efdeec43a0 (patch)
tree2ed14dfb2c0e4ff038ba304c59ed470d91d4aa3a /lib/gitlab/bare_repository_import
parent9d575acc5b46be7e0b76ccc763997412cd278ef0 (diff)
Refactoring Project#write_repository_config
Diffstat (limited to 'lib/gitlab/bare_repository_import')
-rw-r--r--lib/gitlab/bare_repository_import/importer.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/bare_repository_import/importer.rb b/lib/gitlab/bare_repository_import/importer.rb
index 1f0fdc6685e..709a901aa77 100644
--- a/lib/gitlab/bare_repository_import/importer.rb
+++ b/lib/gitlab/bare_repository_import/importer.rb
@@ -20,7 +20,7 @@ module Gitlab
next
end
- log "Processing #{repo_path} -> #{bare_repo.project_full_path}".color(:yellow)
+ log "Processing #{repo_path}".color(:yellow)
new(user, bare_repo).create_project_if_needed
end
@@ -62,10 +62,7 @@ module Gitlab
if project.persisted? && mv_repo(project)
log " * Created #{project.name} (#{project_full_path})".color(:green)
- # We'd need to keep track of project full path otherwise directory tree
- # created with hashed storage enabled cannot be usefully imported using
- # the import rake task.
- project.write_repository_config(:fullpath, project.full_path)
+ project.write_repository_config
ProjectCacheWorker.perform_async(project.id)
else