aboutsummaryrefslogtreecommitdiff
path: root/remote_url.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 12:19:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 12:19:57 +0800
commit9cf817e614a906c54990c74c28d4a6dcf9465731 (patch)
tree6d26a521af68c03f5f883a8ebe16b8842fd0db22 /remote_url.go
parentRemove underscores from Go code, pt 5 (diff)
downloadforge-9cf817e614a906c54990c74c28d4a6dcf9465731.tar.gz
forge-9cf817e614a906c54990c74c28d4a6dcf9465731.tar.zst
forge-9cf817e614a906c54990c74c28d4a6dcf9465731.zip
Remove underscores from Go code, pt 6
Diffstat (limited to 'remote_url.go')
-rw-r--r--remote_url.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/remote_url.go b/remote_url.go
index c0f4fc1..f5ebfcd 100644
--- a/remote_url.go
+++ b/remote_url.go
@@ -10,10 +10,10 @@ import (
// We don't use path.Join because it collapses multiple slashes into one.
-func genSSHRemoteURL(group_path []string, repo_name string) string {
- return strings.TrimSuffix(config.SSH.Root, "/") + "/" + segmentsToURL(group_path) + "/:/repos/" + url.PathEscape(repo_name)
+func genSSHRemoteURL(groupPath []string, repoName string) string {
+ return strings.TrimSuffix(config.SSH.Root, "/") + "/" + segmentsToURL(groupPath) + "/:/repos/" + url.PathEscape(repoName)
}
-func genHTTPRemoteURL(group_path []string, repo_name string) string {
- return strings.TrimSuffix(config.HTTP.Root, "/") + "/" + segmentsToURL(group_path) + "/:/repos/" + url.PathEscape(repo_name)
+func genHTTPRemoteURL(groupPath []string, repoName string) string {
+ return strings.TrimSuffix(config.HTTP.Root, "/") + "/" + segmentsToURL(groupPath) + "/:/repos/" + url.PathEscape(repoName)
}