Commit d2aa48c0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Recreate project satellite on rename or transfer

parent 109ce2c54fe8
......@@ -421,6 +421,7 @@ def rename_repo
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
......
......@@ -29,6 +29,9 @@ def transfer(project, new_namespace)
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment