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