Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-13 16:56:08 +0300
committerDouwe Maan <douwe@gitlab.com>2015-03-13 18:07:02 +0300
commit10421674afdc8a18cdab52288e736d06e3015096 (patch)
treefa6033172a953a86bb7e0bf155aeef657e4f422d /app/services/create_branch_service.rb
parentf2024b1e06587c2b274d4982a48d80d052bba088 (diff)
Ecevute hooks and services when branches are created/deleted through web.
Diffstat (limited to 'app/services/create_branch_service.rb')
-rw-r--r--app/services/create_branch_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/create_branch_service.rb b/app/services/create_branch_service.rb
index f835f06e72b..cf7ae4345f3 100644
--- a/app/services/create_branch_service.rb
+++ b/app/services/create_branch_service.rb
@@ -20,6 +20,8 @@ class CreateBranchService < BaseService
push_data = build_push_data(project, current_user, new_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(new_branch)
else