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:
parent
81ab535433
commit
147fc6db56
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue