Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-06 13:25:45 +0300
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:35:50 +0300
commit58031cadc88c7b2e75853eb7903de5225209d94f (patch)
tree6e883b130b8411e593df488ccb566190452da9f8 /app/services/files
parent7503dc7fcf961258d291e22425705fe309627e46 (diff)
refactors to pass values as arguments through options
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/update_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb
index 41add13af50..905c7a7c81a 100644
--- a/app/services/files/update_service.rb
+++ b/app/services/files/update_service.rb
@@ -3,8 +3,9 @@ require_relative "base_service"
module Files
class UpdateService < Files::BaseService
def commit
-
- repository.update_file(current_user, @file_path, @previous_path, @file_content, @commit_message, @target_branch, true)
+ repository.update_file(current_user, @file_path, @file_content,
+ @target_branch, previous_path: @previous_path,
+ message: @commit_message, update: true)
end
end
end