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 }