2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GitHelpers
|
|
|
|
def rugged_repo(repository)
|
2022-11-25 23:54:43 +05:30
|
|
|
path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do
|
|
|
|
File.join(TestEnv.repos_path, repository.disk_path + '.git')
|
|
|
|
end
|
2018-12-05 23:21:45 +05:30
|
|
|
|
|
|
|
Rugged::Repository.new(path)
|
|
|
|
end
|
|
|
|
end
|