diff options
author | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-23 12:31:53 +0200 |
---|---|---|
committer | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-23 13:47:56 +0200 |
commit | 9c4f967785d05b45ce33ece043c6bacb9d798ca1 (patch) | |
tree | edd93d9ac9a041a0113d4e6675aaf96ce44d4f1e | |
parent | 80197bdc6212a610f96062b8b4c49771f00c87f3 (diff) | |
download | gitlab-ce-9c4f967785d05b45ce33ece043c6bacb9d798ca1.tar.gz |
Take restoring custom hooks and the skip flag out of scope
-rw-r--r-- | lib/backup/repository.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index a6e9450796f..847d14d01c3 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -70,8 +70,6 @@ module Backup # TODO: Need to find a way to do this for gitaly # Gitaly discussion issue: https://gitlab.com/gitlab-org/gitaly/issues/1194 - return if Gitlab::GitalyClient.feature_enabled?(:backup_skip_prepare_directories) - Gitlab.config.repositories.storages.each do |name, repository_storage| path = repository_storage.legacy_disk_path next unless File.exist?(path) @@ -92,7 +90,7 @@ module Backup end end - def restore_custom_hooks + def restore_custom_hooks(project) # TODO: Need to find a way to do this for gitaly # Gitaly migration issue: https://gitlab.com/gitlab-org/gitaly/issues/1195 in_path(path_to_tars(project)) do |dir| @@ -134,7 +132,7 @@ module Backup progress.puts "[Failed] restoring #{project.full_path} repository".color(:red) end - restore_custom_hooks unless Gitlab::GitalyClient.feature_enabled?(:backup_skip_restore_custom_hooks) + restore_custom_hooks(project) wiki = ProjectWiki.new(project) path_to_wiki_bundle = path_to_bundle(wiki) |