diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-13 14:56:08 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-13 16:07:02 +0100 |
commit | 10421674afdc8a18cdab52288e736d06e3015096 (patch) | |
tree | fa6033172a953a86bb7e0bf155aeef657e4f422d /app/services/delete_branch_service.rb | |
parent | f2024b1e06587c2b274d4982a48d80d052bba088 (diff) | |
download | gitlab-ce-10421674afdc8a18cdab52288e736d06e3015096.tar.gz |
Ecevute hooks and services when branches are created/deleted through web.
Diffstat (limited to 'app/services/delete_branch_service.rb')
-rw-r--r-- | app/services/delete_branch_service.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/delete_branch_service.rb b/app/services/delete_branch_service.rb index f2d5ed818c1..b19b112a0c4 100644 --- a/app/services/delete_branch_service.rb +++ b/app/services/delete_branch_service.rb @@ -28,6 +28,9 @@ class DeleteBranchService < BaseService push_data = build_push_data(branch) EventCreateService.new.push(project, current_user, push_data) + project.execute_hooks(push_data.dup, :push_hooks) + project.execute_services(push_data.dup, :push_hooks) + success('Branch was removed') else error('Failed to remove branch') |