aboutsummaryrefslogtreecommitdiff
path: root/ssh_url_generation.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 22:59:16 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 22:59:16 +0800
commit98111aec8ddd70ca061c2954f3dddcc8817c1d44 (patch)
treedf73ab1ad11f670c4d68590492bba4d1fced87b5 /ssh_url_generation.go
parenthttp_{server,handle_login}.go: Fix missing error handling (diff)
downloadforge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.gz
forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.zst
forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.zip
*.go: Reformat
Diffstat (limited to 'ssh_url_generation.go')
-rw-r--r--ssh_url_generation.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh_url_generation.go b/ssh_url_generation.go
index 0cf4c1e..bdef57f 100644
--- a/ssh_url_generation.go
+++ b/ssh_url_generation.go
@@ -6,6 +6,5 @@ import (
)
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)
+ return strings.TrimSuffix(config.SSH.Root, "/") + "/" + url.PathEscape(group_name) + "/:/repos/" + url.PathEscape(repo_name)
}
-