diff --git a/internal/engine/boundary_test.go b/internal/engine/boundary_test.go index c92b4a0..4e5ad5c 100644 --- a/internal/engine/boundary_test.go +++ b/internal/engine/boundary_test.go @@ -16,7 +16,7 @@ import ( func gitIn(t *testing.T, dir string, args ...string) { t.Helper() - command := exec.Command("git", args...) + command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...) command.Dir = dir if output, err := command.CombinedOutput(); err != nil { t.Fatalf("git %v: %v: %s", args, err, output) diff --git a/internal/engine/phase_test.go b/internal/engine/phase_test.go index 5cc3685..717d271 100644 --- a/internal/engine/phase_test.go +++ b/internal/engine/phase_test.go @@ -29,7 +29,7 @@ func initRepo(t *testing.T) string { dir := t.TempDir() git := func(args ...string) { t.Helper() - command := exec.Command("git", args...) + command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...) command.Dir = dir if output, err := command.CombinedOutput(); err != nil { t.Fatalf("git %v: %v: %s", args, err, output) @@ -1571,7 +1571,7 @@ func TestTestsIntactJudgesTheChangeSinceThePinnedBase(t *testing.T) { t.Fatal(err) } for _, args := range [][]string{{"add", "src"}, {"commit", "--quiet", "-m", "tests"}} { - command := exec.Command("git", args...) + command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...) command.Dir = repo if output, err := command.CombinedOutput(); err != nil { t.Fatalf("git %v: %v: %s", args, err, output)