]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "cmd/go: use shallow clones for new git checkouts"
authorBurcu Dogan <jbd@google.com>
Wed, 11 Nov 2015 23:45:09 +0000 (15:45 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 12 Nov 2015 17:27:32 +0000 (17:27 +0000)
This reverts commit bc1f9d20b40998b87c9a5f56f2b22595de65c2d4.

The current go-get strategy doesn't support cases that servers
cannot handle shallow clients.

Also, `go get -u` is broken and is not compatible with already
go-getted unshallow repos.

Fixes #13213.
Fixes #13206.

Change-Id: Ie89d7603d96d323db64ad82997793fda0972f709
Reviewed-on: https://go-review.googlesource.com/16832
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/vcs.go

index 6305175fd1681dbd5c1464227e60ab3e7052a552..a1100960bffe6fb0b76aff79732a019f43a99ed7 100644 (file)
@@ -122,8 +122,8 @@ var vcsGit = &vcsCmd{
        name: "Git",
        cmd:  "git",
 
-       createCmd:   []string{"clone --depth=1 {repo} {dir}", "--git-dir={dir}/.git submodule update --init --recursive"},
-       downloadCmd: []string{"pull --depth=1 --ff-only", "submodule update --init --recursive"},
+       createCmd:   []string{"clone {repo} {dir}", "--git-dir={dir}/.git submodule update --init --recursive"},
+       downloadCmd: []string{"pull --ff-only", "submodule update --init --recursive"},
 
        tagCmd: []tagCmd{
                // tags/xxx matches a git tag named xxx