Commit 494afb4e authored by tiagonbotelho's avatar tiagonbotelho

implements the form for renaming the new filename on the file edit page

parent 840335ec
...@@ -3,6 +3,7 @@ require_relative "base_service" ...@@ -3,6 +3,7 @@ require_relative "base_service"
module Files module Files
class UpdateService < Files::BaseService class UpdateService < Files::BaseService
def commit def commit
repository.update_file(current_user, @file_path, @file_content, repository.update_file(current_user, @file_path, @file_content,
@target_branch, previous_path: @previous_path, @target_branch, previous_path: @previous_path,
message: @commit_message, update: true) message: @commit_message, update: true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment