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 f227dbf..9f30993 100644 --- a/remote_url.go +++ b/remote_url.go @@ -14,12 +14,12 @@ 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, "/") + "/" + misc.SegmentsToURL(groupPath) + "/-/repos/" + url.PathEscape(repoName) +func (s *server) genSSHRemoteURL(groupPath []string, repoName string) string { + return strings.TrimSuffix(s.config.SSH.Root, "/") + "/" + misc.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, "/") + "/" + misc.SegmentsToURL(groupPath) + "/-/repos/" + url.PathEscape(repoName) +func (s *server) genHTTPRemoteURL(groupPath []string, repoName string) string { + return strings.TrimSuffix(s.config.HTTP.Root, "/") + "/" + misc.SegmentsToURL(groupPath) + "/-/repos/" + url.PathEscape(repoName) } |