Skip to content
Snippets Groups Projects
Commit d2aa48c0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Recreate project satellite on rename or transfer

parent 79b76d2c
No related branches found
No related tags found
1 merge request!5081fixed command to update init script
Loading
Loading
@@ -421,6 +421,7 @@ class Project < ActiveRecord::Base
begin
gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki")
gitlab_shell.rm_satellites(old_path_with_namespace)
ensure_satellite_exists
send_move_instructions
rescue
# Returning false does not rollback after_* transaction but gives
Loading
Loading
Loading
Loading
@@ -29,6 +29,9 @@ class ProjectTransferService
# Move wiki repo also if present
gitlab_shell.mv_repository("#{old_path}.wiki", "#{new_path}.wiki")
 
# create satellite repo
project.ensure_satellite_exists
true
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment