diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:26:59 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:26:59 -0200 |
commit | 14336c0bda493a870ffeed86379b274c522fe804 (patch) | |
tree | ca8b375a195ac7c0a1a9d0d5c5a369baa29ad008 /app/services | |
parent | 08de4746dc03e7f090546063711153e99de344ae (diff) | |
download | gitlab-ce-14336c0bda493a870ffeed86379b274c522fe804.tar.gz |
Use if instead of unless on Projects::HashedStorage::MigrateRepositoryServiceda-handle-hashed-storage-repos-using-repo-import-task
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/hashed_storage/migrate_repository_service.rb | 6 |
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 |