summaryrefslogtreecommitdiff
path: root/app/services/delete_branch_service.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-13 14:56:08 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-13 16:07:02 +0100
commit10421674afdc8a18cdab52288e736d06e3015096 (patch)
treefa6033172a953a86bb7e0bf155aeef657e4f422d /app/services/delete_branch_service.rb
parentf2024b1e06587c2b274d4982a48d80d052bba088 (diff)
downloadgitlab-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.rb3
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')