Skip to content

Commit 7ed9741

Browse files
authored
silence git's info on default branches (#247)
1 parent b2776ec commit 7ed9741

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/infra/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func putCloneDir(ctx context.Context, cli *client.Client, updater *Updater, dir
448448
// The directory needs to be a git repo, so we need to initialize it.
449449
commands := []string{
450450
"cd " + guestRepoDir,
451+
"git config --global init.defaultBranch main",
451452
"git init",
452453
"git config user.email 'dependabot@github.com'",
453454
"git config user.name 'dependabot'",

0 commit comments

Comments
 (0)