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/create_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/create_branch_service.rb')
-rw-r--r-- | app/services/create_branch_service.rb | 2 |
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 |