summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-08 14:15:50 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-12-08 14:15:50 +0800
commitcdb598f3973bb7643d8d7f85f6109d84aea759ec (patch)
tree750db346e967b0b4ee04a881dbc11b7604d18df8 /app/controllers
parent56e0dcab97f43e14ae88a66031e3cd71cd062b23 (diff)
downloadgitlab-ce-cdb598f3973bb7643d8d7f85f6109d84aea759ec.tar.gz
We probably don't need this anymore, not sure why
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/concerns/creates_commit.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/concerns/creates_commit.rb b/app/controllers/concerns/creates_commit.rb
index e5c40446314..dacb5679dd3 100644
--- a/app/controllers/concerns/creates_commit.rb
+++ b/app/controllers/concerns/creates_commit.rb
@@ -4,10 +4,9 @@ module CreatesCommit
def create_commit(service, success_path:, failure_path:, failure_view: nil, success_notice: nil)
set_commit_variables
- source_branch = @ref if @ref && @repository.branch_exists?(@ref)
commit_params = @commit_params.merge(
source_project: @project,
- source_branch: source_branch,
+ source_branch: @ref,
target_branch: @target_branch
)