Commit b5c032d0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'notification_on_project_moving' into 'master'

Notification on project moving

Moving of project should respect notification settings

https://dev.gitlab.org/gitlab/gitlabhq/issues/2091

See merge request !452
parents a7adce4f c8fb9726
...@@ -43,6 +43,9 @@ module Projects ...@@ -43,6 +43,9 @@ module Projects
project.namespace = new_namespace project.namespace = new_namespace
project.save! project.save!
# Notifications
project.send_move_instructions
# Move main repository # Move main repository
unless gitlab_shell.mv_repository(old_path, new_path) unless gitlab_shell.mv_repository(old_path, new_path)
raise TransferError.new('Cannot move project') raise TransferError.new('Cannot move project')
......
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