From 58e80fcc2e3e13b79ca3aad76795627ebbb3f0d1 Mon Sep 17 00:00:00 2001 From: Jake Coffman Date: Tue, 23 Jan 2024 14:19:58 -0600 Subject: [PATCH] silence git's info on default branches --- internal/infra/run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/infra/run.go b/internal/infra/run.go index d408571..5d28601 100644 --- a/internal/infra/run.go +++ b/internal/infra/run.go @@ -448,6 +448,7 @@ func putCloneDir(ctx context.Context, cli *client.Client, updater *Updater, dir // The directory needs to be a git repo, so we need to initialize it. commands := []string{ "cd " + guestRepoDir, + "git config --global init.defaultBranch main", "git init", "git config user.email 'dependabot@github.com'", "git config user.name 'dependabot'",