]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: git checkout the correct default branch.
authorDavid Symonds <dsymonds@golang.org>
Wed, 3 Jul 2013 01:56:02 +0000 (11:56 +1000)
committerDavid Symonds <dsymonds@golang.org>
Wed, 3 Jul 2013 01:56:02 +0000 (11:56 +1000)
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

index 39881a6dc70657a0b7632c6550bbeb617b4f64bb..504b3bf54833ce017aaa3694120158d6fbd1e5c7 100644 (file)
@@ -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}",