Skip to content

Commit 6e00113

Browse files
authored
Merge pull request #5029 from Deofex/fix-e2e-initalize-git-repo
🐛 Fix git branch creation error when `main` already exists
2 parents 92b2824 + 79e554b commit 6e00113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/alphaupdate/update_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func initializeGitRepo(projectDir string) {
399399
{"git", "config", "user.name", "Test User"},
400400
{"git", "add", "-A"},
401401
{"git", "commit", "-m", "Initial project with custom code"},
402-
{"git", "checkout", "-b", "main"},
402+
{"git", "branch", "-M", "main"},
403403
}
404404
for _, args := range commands {
405405
cmd := exec.Command(args[0], args[1:]...)

0 commit comments

Comments
 (0)