]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: allow ssh tunnelled bzr, git and svn
authorIngo Oeser <nightlyone@googlemail.com>
Mon, 12 Mar 2012 18:41:01 +0000 (14:41 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 12 Mar 2012 18:41:01 +0000 (14:41 -0400)
This is often used in private hosting and collaborating environments.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5753063

src/cmd/go/vcs.go

index dee7cec37d380e1f122e47971e1dd22ba7c5f31e..642a89f891e708afd9f09d4a87f0515622b78f19 100644 (file)
@@ -104,7 +104,7 @@ var vcsGit = &vcsCmd{
        tagSyncCmd:     "checkout {tag}",
        tagSyncDefault: "checkout origin/master",
 
-       scheme:  []string{"git", "https", "http"},
+       scheme:  []string{"git", "https", "http", "git+ssh"},
        pingCmd: "ls-remote {scheme}://{repo}",
 }
 
@@ -123,7 +123,7 @@ var vcsBzr = &vcsCmd{
        tagSyncCmd:     "update -r {tag}",
        tagSyncDefault: "update -r revno:-1",
 
-       scheme:  []string{"https", "http", "bzr"},
+       scheme:  []string{"https", "http", "bzr", "bzr+ssh"},
        pingCmd: "info {scheme}://{repo}",
 }
 
@@ -138,7 +138,7 @@ var vcsSvn = &vcsCmd{
        // There is no tag command in subversion.
        // The branch information is all in the path names.
 
-       scheme:  []string{"https", "http", "svn"},
+       scheme:  []string{"https", "http", "svn", "svn+ssh"},
        pingCmd: "info {scheme}://{repo}",
 }