Commit 23f53c43 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rename wiki repo if project repo was removed

parent 7daf3947
......@@ -427,6 +427,7 @@ class Project < ActiveRecord::Base
# However we cannot allow rollback since we moved repository
# So we basically we mute exceptions in next actions
begin
gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki")
gitlab_shell.rm_satellites(old_path_with_namespace)
send_move_instructions
rescue
......
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