1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

Shallow clone git repositories for kyverno test command

Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com>
This commit is contained in:
Sambhav Kothari 2022-02-23 12:30:26 +00:00 committed by shuting
parent 81ab535433
commit 147fc6db56

View file

@ -17,6 +17,7 @@ func clone(path string, fs billy.Filesystem, branch string) (*git.Repository, er
ReferenceName: plumbing.ReferenceName(fmt.Sprintf("refs/heads/%s", branch)),
Progress: os.Stdout,
SingleBranch: true,
Depth: 1,
})
}