Allow repo sync fetch to use insecure credentials pattern
This commit is contained in:
parent
6b7f1ff060
commit
19d62826d6
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue