2018-09-03 20:20:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GitHelpers
|
2018-10-02 03:21:46 +00:00
|
|
|
def rugged_repo(repository)
|
2019-10-31 21:06:28 +00:00
|
|
|
path = File.join(TestEnv.repos_path, repository.disk_path + '.git')
|
2018-10-02 03:21:46 +00:00
|
|
|
|
|
|
|
Rugged::Repository.new(path)
|
|
|
|
end
|
2018-09-03 20:20:57 +00:00
|
|
|
end
|