Skip to content

Commit 4f2dcfe

Browse files
authored
Merge pull request #35 from StructuPath/jig/7967c0c0-64ea-49a4-9438-6ff9979a401e/1
jig: job 7967c0c0-64ea-49a4-9438-6ff9979a401e attempt 1
2 parents cd752ac + 2f9c16d commit 4f2dcfe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎internal/engine/boundary_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func gitIn(t *testing.T, dir string, args ...string) {
1818
t.Helper()
19-
command := exec.Command("git", args...)
19+
command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...)
2020
command.Dir = dir
2121
if output, err := command.CombinedOutput(); err != nil {
2222
t.Fatalf("git %v: %v: %s", args, err, output)

‎internal/engine/phase_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func initRepo(t *testing.T) string {
2929
dir := t.TempDir()
3030
git := func(args ...string) {
3131
t.Helper()
32-
command := exec.Command("git", args...)
32+
command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...)
3333
command.Dir = dir
3434
if output, err := command.CombinedOutput(); err != nil {
3535
t.Fatalf("git %v: %v: %s", args, err, output)
@@ -1571,7 +1571,7 @@ func TestTestsIntactJudgesTheChangeSinceThePinnedBase(t *testing.T) {
15711571
t.Fatal(err)
15721572
}
15731573
for _, args := range [][]string{{"add", "src"}, {"commit", "--quiet", "-m", "tests"}} {
1574-
command := exec.Command("git", args...)
1574+
command := exec.Command("git", append([]string{"-c", "gc.auto=0", "-c", "maintenance.auto=false"}, args...)...)
15751575
command.Dir = repo
15761576
if output, err := command.CombinedOutput(); err != nil {
15771577
t.Fatalf("git %v: %v: %s", args, err, output)

0 commit comments

Comments
 (0)