Commit c4208b30 authored by tiagonbotelho's avatar tiagonbotelho

creates the update_file method in repository.rb and applies changes accordingly

parent b81cb3ee
...@@ -748,8 +748,8 @@ class Repository ...@@ -748,8 +748,8 @@ class Repository
update: options[:update] update: options[:update]
} }
if options[:previous_path] if previous_path
commit_options[:file][:previous_path] = options[:previous_path] options[:file].merge!(previous_path: previous_path)
Gitlab::Git::Blob.rename(raw_repository, commit_options) Gitlab::Git::Blob.rename(raw_repository, commit_options)
else else
......
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