summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-03-23 10:20:45 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-03-23 10:20:45 +0000
commitbb9d360c0a7daed6aa08a0635e084c314c2c8b3e (patch)
tree2320d72d11cf226ff35ccc5f00c9e4cd8af5fee1 /app
parent963e445f58f1cbe03f821167a3bf1d0b8cc8a56d (diff)
parent008a6a6ce6fa943adcfecf3a606b845cfa282680 (diff)
downloadgitlab-ce-bb9d360c0a7daed6aa08a0635e084c314c2c8b3e.tar.gz
Merge branch 'mark-legacy-git-access' into 'master'
Route path lookups through legacy_disk_path See merge request gitlab-org/gitlab-ce!17743
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_settings_helper.rb2
-rw-r--r--app/models/project.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index 63e4a5dc45c..c8dfa140529 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -96,7 +96,7 @@ module ApplicationSettingsHelper
def repository_storages_options_for_select(selected)
options = Gitlab.config.repositories.storages.map do |name, storage|
- ["#{name} - #{storage['path']}", name]
+ ["#{name} - #{storage.legacy_disk_path}", name]
end
options_for_select(options, selected)
diff --git a/app/models/project.rb b/app/models/project.rb
index 250680e2a2c..ed5f8b00ba2 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -503,7 +503,7 @@ class Project < ActiveRecord::Base
end
def repository_storage_path
- Gitlab.config.repositories.storages[repository_storage].try(:[], 'path')
+ Gitlab.config.repositories.storages[repository_storage]&.legacy_disk_path
end
def team