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-01 18:32:56 +0300
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:38:23 +0300
commit494afb4e36ae1418e3f37eca2faead6535125b36 (patch)
tree3f45f73240764ddb9d702486bcf2fd845931a4eb /app/services/files
parent840335ec8378ec71cc09f71e0e82d29198d909e4 (diff)
implements the form for renaming the new filename on the file edit page
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/update_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb
index 905c7a7c81a..cbcbdafe21a 100644
--- a/app/services/files/update_service.rb
+++ b/app/services/files/update_service.rb
@@ -3,6 +3,7 @@ require_relative "base_service"
module Files
class UpdateService < Files::BaseService
def commit
+
repository.update_file(current_user, @file_path, @file_content,
@target_branch, previous_path: @previous_path,
message: @commit_message, update: true)