summaryrefslogtreecommitdiff
path: root/app/services/files/update_service.rb
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-01 16:32:56 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 15:22:17 +0100
commitb34310ae9e9d3d4331b38f1acf4a51e2247b76ac (patch)
treeba7e771559e742ccfbfad74088dd01dc7367df3e /app/services/files/update_service.rb
parent850bb6db2facf570a7e0933bbf555f764aeac601 (diff)
downloadgitlab-ce-b34310ae9e9d3d4331b38f1acf4a51e2247b76ac.tar.gz
implements the form for renaming the new filename on the file edit page
Diffstat (limited to 'app/services/files/update_service.rb')
-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 1960dc7d949..52451d72b57 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
+ # Need to update file_path with the new filename
repository.commit_file(current_user, @file_path, @file_content, @commit_message, @target_branch, true)
end
end