]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/get: consistently have trailing slashes in prefixes
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 28 Nov 2017 05:03:09 +0000 (05:03 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 28 Nov 2017 06:47:50 +0000 (06:47 +0000)
Fixes #18122

Change-Id: Ib4067422c0c447ddb2c3068dc6217393abc4eed0
Reviewed-on: https://go-review.googlesource.com/80175
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/get/vcs.go

index ec1f4ffcb1a06a01cfb8438fb872e66de9f9c1e2..26693b13a93d82d1ceaa4c586d857d373b06d2e7 100644 (file)
@@ -970,7 +970,7 @@ var vcsPaths = []*vcsPath{
 
        // IBM DevOps Services (JazzHub)
        {
-               prefix: "hub.jazz.net/git",
+               prefix: "hub.jazz.net/git/",
                re:     `^(?P<root>hub.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:     `^(?P<root>git.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:     `^(?P<root>git\.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:     `^(?P<root>chiselapp\.com/user/[A-Za-z0-9]+/repository/[A-Za-z0-9_.\-]+)$`,
                vcs:    "fossil",
                repo:   "https://{root}",