summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-01-03 16:26:59 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-01-03 16:26:59 -0200
commit14336c0bda493a870ffeed86379b274c522fe804 (patch)
treeca8b375a195ac7c0a1a9d0d5c5a369baa29ad008
parent08de4746dc03e7f090546063711153e99de344ae (diff)
downloadgitlab-ce-14336c0bda493a870ffeed86379b274c522fe804.tar.gz
Use if instead of unless on Projects::HashedStorage::MigrateRepositoryServiceda-handle-hashed-storage-repos-using-repo-import-task
-rw-r--r--app/services/projects/hashed_storage/migrate_repository_service.rb6
1 files 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