aboutsummaryrefslogtreecommitdiff
path: root/http_handle_branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_branches.go')
-rw-r--r--http_handle_branches.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http_handle_branches.go b/http_handle_branches.go
index 48ba5ab..d386b82 100644
--- a/http_handle_branches.go
+++ b/http_handle_branches.go
@@ -13,7 +13,7 @@ import (
)
// httpHandleRepoBranches provides the branches page in repos.
-func httpHandleRepoBranches(writer http.ResponseWriter, _ *http.Request, params map[string]any) {
+func (s *server) httpHandleRepoBranches(writer http.ResponseWriter, _ *http.Request, params map[string]any) {
var repo *git.Repository
var repoName string
var groupPath []string
@@ -37,8 +37,8 @@ func httpHandleRepoBranches(writer http.ResponseWriter, _ *http.Request, params
}
params["branches"] = branches
- params["http_clone_url"] = genHTTPRemoteURL(groupPath, repoName)
- params["ssh_clone_url"] = genSSHRemoteURL(groupPath, repoName)
+ params["http_clone_url"] = s.genHTTPRemoteURL(groupPath, repoName)
+ params["ssh_clone_url"] = s.genSSHRemoteURL(groupPath, repoName)
params["notes"] = notes
renderTemplate(writer, "repo_branches", params)