(t *testing.T, dir string, args ...string)
| 48 | } |
| 49 | |
| 50 | func runGitCommand(t *testing.T, dir string, args ...string) string { |
| 51 | t.Helper() |
| 52 | cmd := exec.Command("git", append([]string{"-C", dir}, args...)...) |
| 53 | output, err := cmd.CombinedOutput() |
| 54 | require.NoError(t, err, "git %v failed: %s", args, string(output)) |
| 55 | return string(output) |
| 56 | } |
no outgoing calls
no test coverage detected