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:
authorLin Jen-Shin <godfat@godfat.org>2016-11-14 20:41:14 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-14 20:41:14 +0300
commit3128641f7eb93fec0930ebfb83a93dfa5e0b343a (patch)
tree4dee0efc686a75ff904ba3fa921bb181ac740212 /app/services/create_branch_service.rb
parentf5bc41b3861c8951ff54ec360b450ec99228776b (diff)
Revert "Don't execute git hooks if you create branch as part of other change"
This reverts commit a431ca0f8b7f8967e89a35caddf1e41e53eee290.
Diffstat (limited to 'app/services/create_branch_service.rb')
-rw-r--r--app/services/create_branch_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/create_branch_service.rb b/app/services/create_branch_service.rb
index a6a3461e17b..757fc35a78f 100644
--- a/app/services/create_branch_service.rb
+++ b/app/services/create_branch_service.rb
@@ -1,7 +1,7 @@
require_relative 'base_service'
class CreateBranchService < BaseService
- def execute(branch_name, ref, source_project: @project, with_hooks: true)
+ def execute(branch_name, ref, source_project: @project)
valid_branch = Gitlab::GitRefValidator.validate(branch_name)
unless valid_branch
@@ -26,7 +26,7 @@ class CreateBranchService < BaseService
repository.find_branch(branch_name)
else
- repository.add_branch(current_user, branch_name, ref, with_hooks: with_hooks)
+ repository.add_branch(current_user, branch_name, ref)
end
if new_branch