Merge pull request #181 from michaellady/polecat/goose-mk1b5dbp
[DO NOT MERGE] fix: Use --initial-branch=main in rig integration tests
This commit is contained in:
@@ -30,9 +30,10 @@ func createTestGitRepo(t *testing.T, name string) string {
|
|||||||
t.Fatalf("mkdir repo: %v", err)
|
t.Fatalf("mkdir repo: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize git repo
|
// Initialize git repo with explicit main branch
|
||||||
|
// (system default may vary, causing checkout failures)
|
||||||
cmds := [][]string{
|
cmds := [][]string{
|
||||||
{"git", "init"},
|
{"git", "init", "--initial-branch=main"},
|
||||||
{"git", "config", "user.email", "test@test.com"},
|
{"git", "config", "user.email", "test@test.com"},
|
||||||
{"git", "config", "user.name", "Test User"},
|
{"git", "config", "user.name", "Test User"},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user