From a44009ca78b26ffc7ecda006131c424b3e7d9075 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 3 Jul 2013 11:56:02 +1000 Subject: [PATCH] cmd/go: git checkout the correct default branch. origin/master is always a remote branch, and it doesn't make sense to switch to a remote branch. master is the default branch that tracks it. R=adg CC=golang-dev, matt.jibson https://golang.org/cl/10869046 --- src/cmd/go/vcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/vcs.go b/src/cmd/go/vcs.go index 39881a6dc7..504b3bf548 100644 --- a/src/cmd/go/vcs.go +++ b/src/cmd/go/vcs.go @@ -102,7 +102,7 @@ var vcsGit = &vcsCmd{ {"show-ref tags/{tag} origin/{tag}", `((?:tags|origin)/\S+)$`}, }, tagSyncCmd: "checkout {tag}", - tagSyncDefault: "checkout origin/master", + tagSyncDefault: "checkout master", scheme: []string{"git", "https", "http", "git+ssh"}, pingCmd: "ls-remote {scheme}://{repo}", -- 2.48.1