diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-12-21 13:58:36 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:13:32 -0200 |
commit | 93eba91df9af083ea80b3b8ab01986efdeec43a0 (patch) | |
tree | 2ed14dfb2c0e4ff038ba304c59ed470d91d4aa3a /lib | |
parent | 9d575acc5b46be7e0b76ccc763997412cd278ef0 (diff) | |
download | gitlab-ce-93eba91df9af083ea80b3b8ab01986efdeec43a0.tar.gz |
Refactoring Project#write_repository_config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/bare_repository_import/importer.rb | 7 |
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 |