(t *testing.T, remote string)
| 373 | } |
| 374 | |
| 375 | func prepareGitRepo(t *testing.T, remote string) { |
| 376 | t.Helper() |
| 377 | require.NoError(t, cmdRepo([]string{"octo/hello"}, io.Discard)) |
| 378 | gitForTest(t, "--", "clone", "--quiet", remote, "main") |
| 379 | require.NoError(t, cmdWrite([]string{"main/example.txt", "--text", "one\n"}, io.Discard)) |
| 380 | gitForTest(t, "--in", "main", "--", "add", "example.txt") |
| 381 | gitForTest(t, "--in", "main", "--", "commit", "--quiet", "-m", "First") |
| 382 | gitForTest(t, "--in", "main", "--", "push", "--quiet", "origin", "main") |
| 383 | } |
no test coverage detected