diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-20 09:33:50 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-20 09:33:50 +0000 |
commit | e9e9da822ac49cc857158c4ecc777b077a963280 (patch) | |
tree | 701e0c6ba6ab53f42ca7b522cccd2e0fb69f8508 /config/initializers/1_settings.rb | |
parent | 329b00672d014994e7189b24a7c2e65771363152 (diff) | |
download | gitlab-ce-e9e9da822ac49cc857158c4ecc777b077a963280.tar.gz |
More gitaly disk access blocks
Diffstat (limited to 'config/initializers/1_settings.rb')
-rw-r--r-- | config/initializers/1_settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 12d09150127..3d3448cb4d6 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -394,6 +394,7 @@ repositories_storages = Settings.repositories.storages.values repository_downloads_path = Settings.gitlab['repository_downloads_path'].to_s.gsub(%r{/$}, '') repository_downloads_full_path = File.expand_path(repository_downloads_path, Settings.gitlab['user_home']) +# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/1237 Gitlab::GitalyClient::StorageSettings.allow_disk_access do if repository_downloads_path.blank? || repositories_storages.any? { |rs| [repository_downloads_path, repository_downloads_full_path].include?(rs.legacy_disk_path.gsub(%r{/$}, '')) } Settings.gitlab['repository_downloads_path'] = File.join(Settings.shared['path'], 'cache/archive') |