summaryrefslogtreecommitdiff
path: root/app/models/storage/legacy_project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/storage/legacy_project.rb')
-rw-r--r--app/models/storage/legacy_project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/storage/legacy_project.rb b/app/models/storage/legacy_project.rb
index 76ac5c13c18..b483c677be9 100644
--- a/app/models/storage/legacy_project.rb
+++ b/app/models/storage/legacy_project.rb
@@ -30,7 +30,7 @@ module Storage
end
def rename_repo(old_full_path: nil, new_full_path: nil)
- old_full_path ||= project.full_path_was
+ old_full_path ||= project.full_path_before_last_save
new_full_path ||= project.build_full_path
if gitlab_shell.mv_repository(repository_storage, old_full_path, new_full_path)