Commit 3c0a94a0 authored by Gabriel Mazetto's avatar Gabriel Mazetto

When repository_storage is nil, pick default from local configuration

parent 4d3eac1a
......@@ -2,7 +2,9 @@ class Geo::DeletedProject < ::Project
after_initialize :readonly!
attr_reader :path_with_namespace
def initialize(id:, name:, path_with_namespace:, repository_storage: 'default')
def initialize(id:, name:, path_with_namespace:, repository_storage:)
repository_storage = current_application_settings.pick_repository_storage unless repository_storage
super(id: id, name: name, repository_storage: repository_storage)
@path_with_namespace = path_with_namespace
end
......
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