diff options
Diffstat (limited to 'remote_url.go')
-rw-r--r-- | remote_url.go | 8 |
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) } |