diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-29 16:37:50 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-01 09:54:56 +0300 |
commit | 5b573130515913dd29216c642334200b1b973245 (patch) | |
tree | ecb0531ba596e0d28f1eb5f099073f45e6dd33ee /app/models/project.rb | |
parent | 2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff) | |
download | gitlab-ce-project_moving.tar.gz |
Note the original location of a moved project when notifying users of the moveproject_moving
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 953b37e3f7a..f91c33e26a2 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -481,8 +481,8 @@ class Project < ActiveRecord::Base end end - def send_move_instructions - NotificationService.new.project_was_moved(self) + def send_move_instructions(old_path_with_namespace) + NotificationService.new.project_was_moved(self, old_path_with_namespace) end def owner @@ -624,7 +624,7 @@ class Project < ActiveRecord::Base # So we basically we mute exceptions in next actions begin gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki") - send_move_instructions + send_move_instructions(old_path_with_namespace) reset_events_cache rescue # Returning false does not rollback after_* transaction but gives |