(t *testing.T, msg string)
| 88 | } |
| 89 | |
| 90 | func (r *gitRepo) commit(t *testing.T, msg string) { |
| 91 | t.Helper() |
| 92 | require.NoError(t, os.WriteFile(filepath.Join(r.dir, "file.txt"), []byte(msg), 0o644)) |
| 93 | r.run(t, "add", "file.txt") |
| 94 | r.run(t, "commit", "-m", msg) |
| 95 | } |
| 96 | |
| 97 | // ctxAt returns a context after switching the process into the repo dir, so the |
| 98 | // git helpers (which shell out in the cwd) operate on this repo. |
no test coverage detected