summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-01-06 23:50:08 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-01-07 00:31:11 +0800
commita6394540327cd3919e5189a35a21b57800a104fc (patch)
tree84e51a4b956ded88be710d33a63a8cc1276563bf /lib/api/commits.rb
parentccc73c455ba0b95b531c69414a6a1f47667f16b5 (diff)
downloadgitlab-ce-a6394540327cd3919e5189a35a21b57800a104fc.tar.gz
Fix renaming
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 2c1da0902c9..031759cdcdf 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -55,7 +55,7 @@ module API
authorize! :push_code, user_project
attrs = declared_params
- attrs[:source_branch] = attrs[:branch_name]
+ attrs[:start_branch] = attrs[:branch_name]
attrs[:target_branch] = attrs[:branch_name]
attrs[:actions].map! do |action|
action[:action] = action[:action].to_sym