mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
clone more refs (#2988)
This commit is contained in:
parent
007fbf5768
commit
d5b9157d2b
1 changed files with 2 additions and 0 deletions
|
@ -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...)
|
||||
|
|
Loading…
Reference in a new issue