notification on project moving

This commit is contained in:
Valery Sizov 2015-03-25 18:18:26 +02:00
parent 8f3f6e9efb
commit c8fb972606
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ module Projects
project.namespace = new_namespace
project.save!
# Notifications
project.send_move_instructions
# Move main repository
unless gitlab_shell.mv_repository(old_path, new_path)
raise TransferError.new('Cannot move project')