diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-03-14 16:42:49 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-03-21 20:18:32 +0300 |
commit | 008a6a6ce6fa943adcfecf3a606b845cfa282680 (patch) | |
tree | f98536d22e41415cb93a3e729ff49519cd37a13a /lib/backup | |
parent | b3daf108aacc4ae363283d46395fe853fa06cccb (diff) |
Route path lookups through legacy_disk_path
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index 6715159a1aa..88a7f2a4235 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -65,7 +65,7 @@ module Backup def restore Gitlab.config.repositories.storages.each do |name, repository_storage| - path = repository_storage['path'] + path = repository_storage.legacy_disk_path next unless File.exist?(path) # Move repos dir to 'repositories.old' dir @@ -200,7 +200,7 @@ module Backup end def repository_storage_paths_args - Gitlab.config.repositories.storages.values.map { |rs| rs['path'] } + Gitlab.config.repositories.storages.values.map { |rs| rs.legacy_disk_path } end def progress |