diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
commit | dd95e2dbfad7f39060dc70f145d0e1478770e454 (patch) | |
tree | 863f9c3a941f21a66fe0af1cbe9a09ae444c8a46 /remote_url.go | |
parent | README.md: Mention that anonymous pushes to contrib/ are possible now (diff) | |
download | forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.gz forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.zst forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.zip |
*.go: Add some comments for docs
Diffstat (limited to 'remote_url.go')
-rw-r--r-- | remote_url.go | 2 |
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) } |