diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-08-18 01:09:03 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-08-18 02:00:07 +0300 |
commit | a037a79130f7207840baf016316a62e5619ba98e (patch) | |
tree | 04a1e6874a636777b2c404dc36fbfb4e840e2b57 /config | |
parent | 1c3a2bc38987a659319314953a1a90263e329c3b (diff) |
Setup repositories settings properly
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/1_settings.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 5de46eddab6..abaabad5d65 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -440,7 +440,9 @@ unless Settings.repositories.storages['default'] Settings.repositories.storages['default']['path'] ||= Settings.gitlab['user_home'] + '/repositories/' end -Settings.repositories.storages.values.each do |storage| +Settings.repositories.storages.each do |key, storage| + storage = Settingslogic.new(storage) + # Expand relative paths storage['path'] = Settings.absolute(storage['path']) # Set failure defaults @@ -454,6 +456,8 @@ Settings.repositories.storages.values.each do |storage| storage['failure_reset_time'] = storage['failure_reset_time'].to_i # We might want to have a timeout shorter than 1 second. storage['storage_timeout'] = storage['storage_timeout'].to_f + + Settings.repositories.storages[key] = storage end # |