summaryrefslogtreecommitdiff
path: root/lib/api
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
parentccc73c455ba0b95b531c69414a6a1f47667f16b5 (diff)
downloadgitlab-ce-a6394540327cd3919e5189a35a21b57800a104fc.tar.gz
Fix renaming
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/commits.rb2
-rw-r--r--lib/api/files.rb2
2 files changed, 2 insertions, 2 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
diff --git a/lib/api/files.rb b/lib/api/files.rb
index 2e79e22e649..c58472de578 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -5,7 +5,7 @@ module API
def commit_params(attrs)
{
file_path: attrs[:file_path],
- source_branch: attrs[:branch_name],
+ start_branch: attrs[:branch_name],
target_branch: attrs[:branch_name],
commit_message: attrs[:commit_message],
file_content: attrs[:content],