diff options
author | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-17 15:36:58 +0300 |
---|---|---|
committer | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-17 15:36:58 +0300 |
commit | 62f29887136ba39eb2c0607eba250d488ced2611 (patch) | |
tree | d6a5f97d67b335fb6528b750a0e7a0318543f460 | |
parent | 42cabcb1c45dc8f0d38c36c409bf0efbc9111a67 (diff) | |
download | gitlab-ce-62f29887136ba39eb2c0607eba250d488ced2611.tar.gz |
Return from prepare directory if gitaly skip is enabled
-rw-r--r-- | lib/backup/repository.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index bc517191939..2209a305d91 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -67,6 +67,8 @@ module Backup end def prepare_directories + return if GitalyClient.feature_enabled?(:backup_skip_prepare_directories) + Gitlab.config.repositories.storages.each do |name, repository_storage| gitaly_migrate(:remove_repositories) do |is_enabled| # TODO: Need to find a way to do this for gitaly |