Does not write to .git/config when importing bare repositories

This commit is contained in:
Douglas Barbosa Alexandre 2017-12-19 19:54:04 -02:00
parent 2f2233774c
commit d3d617354e

View file

@ -87,12 +87,12 @@ module Projects
def after_create_actions
log_info("#{@project.owner.name} created a new project \"#{@project.name_with_namespace}\"")
# 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)
unless @project.gitlab_project_import?
# 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.create_wiki unless skip_wiki?
create_services_from_active_templates(@project)