blob: d272c25d1f9c068f785adbc9fdac7e9166ec2cf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Gitlab
module GitalyClient
module Util
def self.process_path(repository_storage, relative_path)
channel = GitalyClient.get_channel(repository_storage)
storage_path = Gitlab.config.repositories.storages[repository_storage]['path']
repository = Gitaly::Repository.new(path: File.join(storage_path, relative_path))
[channel, repository]
end
end
end
end
|