Simplify a condition in Repository#update_file
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
08dc8af733
commit
23612ada54
|
@ -813,7 +813,7 @@ class Repository
|
|||
update: true
|
||||
}
|
||||
|
||||
unless previous_path == path || previous_path.blank?
|
||||
if previous_path && previous_path != path
|
||||
options[:file][:previous_path] = previous_path
|
||||
Gitlab::Git::Blob.rename(raw_repository, options)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue