Make repo sync git fetch authenticated (#7139)

This commit is contained in:
Sam Coe 2023-03-13 13:00:37 +11:00 committed by GitHub
parent c2d728ecd3
commit cff5dec2ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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