From 147fc6db56560bb722df4200251320d5947ee2f5 Mon Sep 17 00:00:00 2001 From: Sambhav Kothari Date: Wed, 23 Feb 2022 12:30:26 +0000 Subject: [PATCH] Shallow clone git repositories for kyverno test command Signed-off-by: Sambhav Kothari --- pkg/kyverno/test/git.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kyverno/test/git.go b/pkg/kyverno/test/git.go index 44c325a273..67c5720c56 100644 --- a/pkg/kyverno/test/git.go +++ b/pkg/kyverno/test/git.go @@ -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, }) }