From: Rob Pike Date: Thu, 29 Aug 2013 07:15:35 +0000 (+1000) Subject: cmd/go: make it work for code.google.com cloned repositories X-Git-Tag: go1.2rc2~395 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=65f21ca2c6e62cc9fb77a285764420df9e7f248f;p=gostls13.git cmd/go: make it work for code.google.com cloned repositories Thanks to beatgammit for the fix. Fixes #5408. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13261048 --- diff --git a/src/cmd/go/vcs.go b/src/cmd/go/vcs.go index ec5dc17c5f..58040e3d41 100644 --- a/src/cmd/go/vcs.go +++ b/src/cmd/go/vcs.go @@ -569,7 +569,7 @@ var vcsPaths = []*vcsPath{ // Google Code - new syntax { prefix: "code.google.com/", - re: `^(?Pcode\.google\.com/p/(?P[a-z0-9\-]+)(\.(?P[a-z0-9\-]+))?)(/[A-Za-z0-9_.\-]+)*$`, + re: `^(?Pcode\.google\.com/[pr]/(?P[a-z0-9\-]+)(\.(?P[a-z0-9\-]+))?)(/[A-Za-z0-9_.\-]+)*$`, repo: "https://{root}", check: googleCodeVCS, },