From b619d5573e4ed02780018cad845a941f2a1c374e Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Wed, 11 Nov 2015 15:45:09 -0800 Subject: [PATCH] Revert "cmd/go: use shallow clones for new git checkouts" 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 Reviewed-by: Russ Cox --- src/cmd/go/vcs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/vcs.go b/src/cmd/go/vcs.go index 6305175fd1..a1100960bf 100644 --- a/src/cmd/go/vcs.go +++ b/src/cmd/go/vcs.go @@ -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 -- 2.48.1