summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 0edc0746fb9..ed30b5ea892 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -298,8 +298,10 @@ class Project < ActiveRecord::Base
ProjectTransferService.new.transfer(self, new_namespace)
end
- def execute_hooks(data)
- hooks.each { |hook| hook.async_execute(data) }
+ def execute_hooks(data, hooks_scope = :push_hooks)
+ hooks.send(hooks_scope).each do |hook|
+ hook.async_execute(data)
+ end
end
def execute_services(data)