aboutsummaryrefslogtreecommitdiff
path: root/remote_url.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote_url.go')
-rw-r--r--remote_url.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote_url.go b/remote_url.go
index f64d6ec..8a192a8 100644
--- a/remote_url.go
+++ b/remote_url.go
@@ -5,6 +5,8 @@ import (
"strings"
)
+// We don't use path.Join because it collapses multiple slashes into one.
+
func generate_ssh_remote_url(group_name, repo_name string) string {
return strings.TrimSuffix(config.SSH.Root, "/") + "/" + url.PathEscape(group_name) + "/:/repos/" + url.PathEscape(repo_name)
}