summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/storage/checker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/storage/checker.rb')
-rw-r--r--lib/gitlab/git/storage/checker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/storage/checker.rb b/lib/gitlab/git/storage/checker.rb
index 2f611cef37b..391f0d70583 100644
--- a/lib/gitlab/git/storage/checker.rb
+++ b/lib/gitlab/git/storage/checker.rb
@@ -35,7 +35,7 @@ module Gitlab
def initialize(storage, logger = Rails.logger)
@storage = storage
config = Gitlab.config.repositories.storages[@storage]
- @storage_path = config.legacy_disk_path
+ @storage_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access { config.legacy_disk_path }
@logger = logger
@hostname = Gitlab::Environment.hostname