951afba624
It used to be the case that GitLab created symlinks for each repository to one copy of the Git hooks, so these ran when required. This changed to set the hooks dynamically on Gitaly when invoking Git. The side effect is that we didn't need all these symlinks anymore, which Gitaly doesn't create anymore either. Now that means that the tests in GitLab-Rails should test for it either. Related: https://gitlab.com/gitlab-org/gitaly/issues/1392#note_175619926
9 lines
195 B
Ruby
9 lines
195 B
Ruby
# frozen_string_literal: true
|
|
|
|
module GitHelpers
|
|
def rugged_repo(repository)
|
|
path = File.join(TestEnv.repos_path, repository.disk_path + '.git')
|
|
|
|
Rugged::Repository.new(path)
|
|
end
|
|
end
|