Skip to content

Commit 54e0b6e

Browse files
Merge pull request #2 from bigbinary/use-shallow-clone
Use shallow clone for cloning repositories during build
2 parents f091d66 + 748a757 commit 54e0b6e

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)