]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use shallow clones for new git checkouts
authorMeng Zhuo <mengzhuo1203@gmail.com>
Tue, 27 Oct 2015 07:36:38 +0000 (15:36 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 Nov 2015 14:28:58 +0000 (14:28 +0000)
commitbc1f9d20b40998b87c9a5f56f2b22595de65c2d4
tree26e645b6951dd2a0874cf7d01b9d8fe9b09ea4b3
parent880a689124161f9dc342255ba8fe326719eb8de1
cmd/go: use shallow clones for new git checkouts

Currently go get will clone the full history of git repos.
We can improve the download waiting time/size by passing depth argument.

The docs about shallow clones and the --depth argument are here:
https://git-scm.com/docs/git-clone
https://git-scm.com/docs/git-pull

Fixes #13078

Change-Id: Ie891d905d9c77f6ecadf7dcd5b44b477f4e079e0
Reviewed-on: https://go-review.googlesource.com/16360
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/vcs.go