]> Cypherpunks repositories - gostls13.git/commit
cmd/go: solve ambiguity of get lp.net/project/foo
authorGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 27 Jan 2012 02:58:24 +0000 (00:58 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 27 Jan 2012 02:58:24 +0000 (00:58 -0200)
commitcdbed823bde062cf72f62437261ee9c84007269c
treebc06275940d6cdd23fe9283e75d6e6fe17071c60
parent2332439b1b02789f5cfeceb78458eb34981e28c8
cmd/go: solve ambiguity of get lp.net/project/foo

This solves the ambiguity for "lp.net/project/foo". In these URLs,
"foo" could be a series name registered in Launchpad with its own
branch, and it could also be the name of a directory within the
main project branch one level up.

Solve it by testing if the series branch exists in Launchpad
and if it doesn't moving the root one level up.

R=rsc
CC=golang-dev
https://golang.org/cl/5577058
src/cmd/go/vcs.go