diff options
Diffstat (limited to 'app/models/storage/legacy_project.rb')
-rw-r--r-- | app/models/storage/legacy_project.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/models/storage/legacy_project.rb b/app/models/storage/legacy_project.rb index 0d12a629b8e..700314e277a 100644 --- a/app/models/storage/legacy_project.rb +++ b/app/models/storage/legacy_project.rb @@ -23,27 +23,5 @@ module Storage def disk_path project.full_path end - - def rename_repo(old_full_path: nil, new_full_path: nil) - 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) - # If repository moved successfully we need to send update instructions to users. - # However we cannot allow rollback since we moved repository - # So we basically we mute exceptions in next actions - begin - gitlab_shell.mv_repository(repository_storage, "#{old_full_path}.wiki", "#{new_full_path}.wiki") - return true - rescue StandardError => e - Gitlab::AppLogger.error("Exception renaming #{old_full_path} -> #{new_full_path}: #{e}") - # Returning false does not rollback after_* transaction but gives - # us information about failing some of tasks - return false - end - end - - false - end end end |