diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-20 17:44:15 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-20 17:44:15 +0300 |
commit | 23f53c43ce9785f9974b81f3b34bb1f315b66f01 (patch) | |
tree | 5fc4b08004d51dece3cab56b9caae1afb7f8c25b | |
parent | 7daf394732db2bc696938739cdb8f1bccd0a501f (diff) | |
download | gitlab-ce-23f53c43ce9785f9974b81f3b34bb1f315b66f01.tar.gz |
Rename wiki repo if project repo was removed
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index de77bf1c666..d8fa6cbe068 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 |