Allow repo sync fetch to use insecure credentials pattern

This commit is contained in:
William Martin 2024-11-26 22:19:55 +01:00
parent 6b7f1ff060
commit 19d62826d6

View file

@ -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
}