From cff5dec2cec8345b6c15f09fbc208b387f5cce0d Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Mon, 13 Mar 2023 13:00:37 +1100 Subject: [PATCH] Make repo sync git fetch authenticated (#7139) --- pkg/cmd/repo/sync/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/repo/sync/git.go b/pkg/cmd/repo/sync/git.go index f4ca31789..48429f2bb 100644 --- a/pkg/cmd/repo/sync/git.go +++ b/pkg/cmd/repo/sync/git.go @@ -71,7 +71,7 @@ func (g *gitExecuter) CurrentBranch() (string, error) { func (g *gitExecuter) Fetch(remote, ref string) error { args := []string{"fetch", "-q", remote, ref} - cmd, err := g.client.Command(context.Background(), args...) + cmd, err := g.client.AuthenticatedCommand(context.Background(), args...) if err != nil { return err }