summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-26 11:13:42 +0000
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-26 11:13:42 +0000
commitca6cc6014eed02b2e74bc8ffe65d3c1cc2e511b4 (patch)
tree2c7f9b643463a69b5010b8942eaa2e3c58fd59c9 /lib/api/files.rb
parentaf6e3e57e4c0ee861e26310c65be2e5e8547ca68 (diff)
parent52bd4b88dc557f0b3c63e82d0f2093f22b28ae9d (diff)
downloadgitlab-ce-ca6cc6014eed02b2e74bc8ffe65d3c1cc2e511b4.tar.gz
Merge branch 'master' into 'add-sentry-js-again-with-vue'
# Conflicts: # config/webpack.config.js
Diffstat (limited to 'lib/api/files.rb')
-rw-r--r--lib/api/files.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index 33fc970dc09..e6ea12c5ab7 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -5,7 +5,7 @@ module API
{
file_path: attrs[:file_path],
start_branch: attrs[:branch],
- target_branch: attrs[:branch],
+ branch_name: attrs[:branch],
commit_message: attrs[:commit_message],
file_content: attrs[:content],
file_content_encoding: attrs[:encoding],
@@ -130,7 +130,7 @@ module API
authorize! :push_code, user_project
file_params = declared_params(include_missing: false)
- result = ::Files::DestroyService.new(user_project, current_user, commit_params(file_params)).execute
+ result = ::Files::DeleteService.new(user_project, current_user, commit_params(file_params)).execute
if result[:status] != :success
render_api_error!(result[:message], 400)