diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-14 00:09:36 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 18:55:01 +0300 |
commit | 0625af3bcb75b3186a3286eee662a7ff8442f130 (patch) | |
tree | b35fbb083efa3b5c39c8c154f02e38e0e5ee29c7 /lib/api/commits.rb | |
parent | faaca5e191f9fe3894ad7587b42495fcbcab9328 (diff) |
Consistently create, update, and delete files, taking CRLF settings into account
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 7 |
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 |