diff --git a/pkg/cmd/repo/sync/git.go b/pkg/cmd/repo/sync/git.go index 3d48ad7b3..b0bd26abd 100644 --- a/pkg/cmd/repo/sync/git.go +++ b/pkg/cmd/repo/sync/git.go @@ -54,13 +54,8 @@ func (g *gitExecuter) CurrentBranch() (string, error) { } func (g *gitExecuter) Fetch(remote, ref string) error { - host, err := g.client.CredentialPatternFromRemote(context.Background(), remote) - if err != nil { - return err - } - args := []string{"fetch", "-q", remote, ref} - cmd, err := g.client.AuthenticatedCommand(context.Background(), host, args...) + cmd, err := g.client.AuthenticatedCommand(context.Background(), git.InsecureAllMatchingCredentialsPattern, args...) if err != nil { return err }