clone more refs (#2988)

This commit is contained in:
Zachary Rice 2024-06-20 09:40:03 -05:00 committed by GitHub
parent 007fbf5768
commit d5b9157d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -419,6 +419,8 @@ func executeClone(ctx context.Context, params cloneParams) (*git.Repository, err
"clone",
cloneURL.String(),
params.clonePath,
"-c",
"remote.origin.fetch=+refs/*:refs/remotes/origin/*",
"--quiet", // https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--quietcode
}
gitArgs = append(gitArgs, params.args...)