Repository returns a `*git.Repository` for `repo`.
(t *testing.T)
| 88 | |
| 89 | // Repository returns a `*git.Repository` for `repo`. |
| 90 | func (repo *TestRepo) Repository(t *testing.T) *git.Repository { |
| 91 | t.Helper() |
| 92 | |
| 93 | r, err := git.NewRepository(repo.Path) |
| 94 | require.NoError(t, err) |
| 95 | return r |
| 96 | } |
| 97 | |
| 98 | // localEnvVars is a list of the variable names that should be cleared |
| 99 | // to give Git a clean environment. |