From: Brad Fitzpatrick Date: Tue, 28 Nov 2017 05:03:09 +0000 (+0000) Subject: cmd/go/internal/get: consistently have trailing slashes in prefixes X-Git-Tag: go1.10beta1~127 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9a13f8e11ce487fccef071303164b3d963e6ede6;p=gostls13.git cmd/go/internal/get: consistently have trailing slashes in prefixes Fixes #18122 Change-Id: Ib4067422c0c447ddb2c3068dc6217393abc4eed0 Reviewed-on: https://go-review.googlesource.com/80175 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/internal/get/vcs.go b/src/cmd/go/internal/get/vcs.go index ec1f4ffcb1..26693b13a9 100644 --- a/src/cmd/go/internal/get/vcs.go +++ b/src/cmd/go/internal/get/vcs.go @@ -970,7 +970,7 @@ var vcsPaths = []*vcsPath{ // IBM DevOps Services (JazzHub) { - prefix: "hub.jazz.net/git", + prefix: "hub.jazz.net/git/", re: `^(?Phub.jazz.net/git/[a-z0-9]+/[A-Za-z0-9_.\-]+)(/[A-Za-z0-9_.\-]+)*$`, vcs: "git", repo: "https://{root}", @@ -979,7 +979,7 @@ var vcsPaths = []*vcsPath{ // Git at Apache { - prefix: "git.apache.org", + prefix: "git.apache.org/", re: `^(?Pgit.apache.org/[a-z0-9_.\-]+\.git)(/[A-Za-z0-9_.\-]+)*$`, vcs: "git", repo: "https://{root}", @@ -987,7 +987,7 @@ var vcsPaths = []*vcsPath{ // Git at OpenStack { - prefix: "git.openstack.org", + prefix: "git.openstack.org/", re: `^(?Pgit\.openstack\.org/[A-Za-z0-9_.\-]+/[A-Za-z0-9_.\-]+)(\.git)?(/[A-Za-z0-9_.\-]+)*$`, vcs: "git", repo: "https://{root}", @@ -995,7 +995,7 @@ var vcsPaths = []*vcsPath{ // chiselapp.com for fossil { - prefix: "chiselapp.com", + prefix: "chiselapp.com/", re: `^(?Pchiselapp\.com/user/[A-Za-z0-9]+/repository/[A-Za-z0-9_.\-]+)$`, vcs: "fossil", repo: "https://{root}",