summaryrefslogtreecommitdiff
path: root/app/services/commits
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-15 01:41:14 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-15 01:41:14 +0800
commit3128641f7eb93fec0930ebfb83a93dfa5e0b343a (patch)
tree4dee0efc686a75ff904ba3fa921bb181ac740212 /app/services/commits
parentf5bc41b3861c8951ff54ec360b450ec99228776b (diff)
downloadgitlab-ce-3128641f7eb93fec0930ebfb83a93dfa5e0b343a.tar.gz
Revert "Don't execute git hooks if you create branch as part of other change"
This reverts commit a431ca0f8b7f8967e89a35caddf1e41e53eee290.
Diffstat (limited to 'app/services/commits')
-rw-r--r--app/services/commits/change_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/commits/change_service.rb b/app/services/commits/change_service.rb
index 2d4c9788d02..1c82599c579 100644
--- a/app/services/commits/change_service.rb
+++ b/app/services/commits/change_service.rb
@@ -55,7 +55,7 @@ module Commits
return success if repository.find_branch(new_branch)
result = CreateBranchService.new(@project, current_user)
- .execute(new_branch, @target_branch, source_project: @source_project, with_hooks: false)
+ .execute(new_branch, @target_branch, source_project: @source_project)
if result[:status] == :error
raise ChangeError, "There was an error creating the source branch: #{result[:message]}"