Skip to content
Snippets Groups Projects
Commit 494afb4e authored by tiagonbotelho's avatar tiagonbotelho
Browse files

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

parent 840335ec
Branches
Tags
1 merge request!5049Implements the form for renaming the new filename on the file edit page
Loading
@@ -3,6 +3,7 @@ require_relative "base_service"
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment