Commit 62f29887 authored by Ahmad Hassan's avatar Ahmad Hassan

Return from prepare directory if gitaly skip is enabled

parent 42cabcb1
...@@ -67,6 +67,8 @@ module Backup ...@@ -67,6 +67,8 @@ module Backup
end end
def prepare_directories def prepare_directories
return if GitalyClient.feature_enabled?(:backup_skip_prepare_directories)
Gitlab.config.repositories.storages.each do |name, repository_storage| Gitlab.config.repositories.storages.each do |name, repository_storage|
gitaly_migrate(:remove_repositories) do |is_enabled| gitaly_migrate(:remove_repositories) do |is_enabled|
# TODO: Need to find a way to do this for gitaly # TODO: Need to find a way to do this for gitaly
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment