Commit 23f53c43ce9785f9974b81f3b34bb1f315b66f01

Authored by Dmitriy Zaporozhets
1 parent 7daf3947

Rename wiki repo if project repo was removed

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/models/project.rb
@@ -427,6 +427,7 @@ class Project < ActiveRecord::Base @@ -427,6 +427,7 @@ class Project < ActiveRecord::Base
427 # However we cannot allow rollback since we moved repository 427 # However we cannot allow rollback since we moved repository
428 # So we basically we mute exceptions in next actions 428 # So we basically we mute exceptions in next actions
429 begin 429 begin
  430 + gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki")
430 gitlab_shell.rm_satellites(old_path_with_namespace) 431 gitlab_shell.rm_satellites(old_path_with_namespace)
431 send_move_instructions 432 send_move_instructions
432 rescue 433 rescue