2017-02-15 21:08:30 -05:00
|
|
|
module Gitlab
|
|
|
|
module GitalyClient
|
|
|
|
module Util
|
2017-04-06 10:54:15 -04:00
|
|
|
class << self
|
|
|
|
def repository(repository_storage, relative_path)
|
|
|
|
Gitaly::Repository.new(
|
|
|
|
path: File.join(Gitlab.config.repositories.storages[repository_storage]['path'], relative_path),
|
|
|
|
storage_name: repository_storage,
|
|
|
|
relative_path: relative_path,
|
|
|
|
)
|
|
|
|
end
|
2017-02-15 21:08:30 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|