Skip to content

Commit 748a757

Browse files
Use shallow clone
1 parent cc28885 commit 748a757

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/git/fetch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func (f Fetcher) Fetch(dir, gitURL, gitRevision, metadataDir string) error {
3939
}
4040

4141
err = remote.Fetch(&gogit.FetchOptions{
42+
Depth: 1,
4243
RefSpecs: []config.RefSpec{"refs/*:refs/*"},
4344
Auth: auth,
4445
})

0 commit comments

Comments
 (0)