summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-13 15:09:36 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-24 09:55:01 -0600
commit0625af3bcb75b3186a3286eee662a7ff8442f130 (patch)
treeb35fbb083efa3b5c39c8c154f02e38e0e5ee29c7 /lib/api/commits.rb
parentfaaca5e191f9fe3894ad7587b42495fcbcab9328 (diff)
downloadgitlab-ce-0625af3bcb75b3186a3286eee662a7ff8442f130.tar.gz
Consistently create, update, and delete files, taking CRLF settings into account
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 9ce396d4660..fd03e92264d 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -52,13 +52,6 @@ module API
attrs = declared_params.merge(start_branch: declared_params[:branch], target_branch: declared_params[:branch])
- attrs[:actions].map! do |action|
- action[:action] = action[:action].to_sym
- action[:file_path].slice!(0) if action[:file_path] && action[:file_path].start_with?('/')
- action[:previous_path].slice!(0) if action[:previous_path] && action[:previous_path].start_with?('/')
- action
- end
-
result = ::Files::MultiService.new(user_project, current_user, attrs).execute
if result[:status] == :success