summaryrefslogtreecommitdiff
path: root/app/services/files
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/files
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/files')
-rw-r--r--app/services/files/base_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index 1802b932e03..9bd4bd464f7 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -74,7 +74,7 @@ module Files
end
def create_target_branch
- result = CreateBranchService.new(project, current_user).execute(@target_branch, @source_branch, source_project: @source_project, with_hooks: false)
+ result = CreateBranchService.new(project, current_user).execute(@target_branch, @source_branch, source_project: @source_project)
unless result[:status] == :success
raise_error("Something went wrong when we tried to create #{@target_branch} for you: #{result[:message]}")