aboutsummaryrefslogtreecommitdiff
path: root/remote_url.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-01 22:20:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-01 22:20:55 +0800
commitfcf927a1e3c3b13835c0c021f0aefe3a1eca72c5 (patch)
treea10cee3ba46d194c6c034836f761049337590ea2 /remote_url.go
parentAdjust head (diff)
downloadforge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.gz
forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.zst
forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.zip
More segments fixes
Diffstat (limited to 'remote_url.go')
-rw-r--r--remote_url.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_url.go b/remote_url.go
index 06ee0da..5c980f5 100644
--- a/remote_url.go
+++ b/remote_url.go
@@ -13,11 +13,11 @@ import (
// genSSHRemoteURL generates SSH remote URLs from a given group path and repo
// name.
func genSSHRemoteURL(groupPath []string, repoName string) string {
- return strings.TrimSuffix(config.SSH.Root, "/") + "/" + segmentsToURL(groupPath) + "/:/repos/" + url.PathEscape(repoName)
+ return strings.TrimSuffix(config.SSH.Root, "/") + "/" + segmentsToURL(groupPath) + "/-/repos/" + url.PathEscape(repoName)
}
// genHTTPRemoteURL generates HTTP remote URLs from a given group path and repo
// name.
func genHTTPRemoteURL(groupPath []string, repoName string) string {
- return strings.TrimSuffix(config.HTTP.Root, "/") + "/" + segmentsToURL(groupPath) + "/:/repos/" + url.PathEscape(repoName)
+ return strings.TrimSuffix(config.HTTP.Root, "/") + "/" + segmentsToURL(groupPath) + "/-/repos/" + url.PathEscape(repoName)
}