(repoPath string, args ...string)
| 388 | } |
| 389 | |
| 390 | func execGit(repoPath string, args ...string) error { |
| 391 | cmd := exec.Command("git", append([]string{"-C", repoPath}, args...)...) |
| 392 | out, err := cmd.CombinedOutput() |
| 393 | if err != nil { |
| 394 | return fmt.Errorf("git %v failed: %s: %w", args, string(out), err) |
| 395 | } |
| 396 | return nil |
| 397 | } |
| 398 | |
| 399 | func setupTestRepository(t *testing.T) string { |
| 400 | tempDir := t.TempDir() |
no test coverage detected