From 14336c0bda493a870ffeed86379b274c522fe804 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre <dbalexandre@gmail.com> Date: Wed, 3 Jan 2018 16:26:59 -0200 Subject: [PATCH] Use if instead of unless on Projects::HashedStorage::MigrateRepositoryService --- .../projects/hashed_storage/migrate_repository_service.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/projects/hashed_storage/migrate_repository_service.rb b/app/services/projects/hashed_storage/migrate_repository_service.rb index b6763c9436f..67178de75de 100644 --- a/app/services/projects/hashed_storage/migrate_repository_service.rb +++ b/app/services/projects/hashed_storage/migrate_repository_service.rb @@ -27,11 +27,11 @@ module Projects result &&= move_repository("#{@old_wiki_disk_path}", "#{@new_disk_path}.wiki") end - unless result + if result + project.write_repository_config + else rollback_folder_move project.storage_version = nil - else - project.write_repository_config end project.repository_read_only = false -- 2.30.9