aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_tree.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 19:55:10 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 19:55:10 +0800
commit26ce57a710aac4cd8e4efcf4656c1f2448476c0d (patch)
tree77339c0fad7fdcd5b3c18b6703eedacea781b210 /handle_repo_tree.go
parent*.html: Add "&ndash; Lindenii Forge" to the title (diff)
downloadforge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.gz
forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.zst
forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.zip
*: Some simple styling with tables
Diffstat (limited to 'handle_repo_tree.go')
-rw-r--r--handle_repo_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle_repo_tree.go b/handle_repo_tree.go
index 5b27f8f..0782ce8 100644
--- a/handle_repo_tree.go
+++ b/handle_repo_tree.go
@@ -16,7 +16,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request) {
data := make(map[string]any)
// TODO: Sanitize path values
ref_name, category_name, repo_name, path_spec := r.PathValue("ref"), r.PathValue("category_name"), r.PathValue("repo_name"), strings.TrimSuffix(r.PathValue("rest"), "/")
- data["category_name"], data["repo_name"], data["path_spec"] = category_name, repo_name, path_spec
+ data["ref"], data["category_name"], data["repo_name"], data["path_spec"] = ref_name, category_name, repo_name, path_spec
repo, err := open_git_repo(category_name, repo_name)
if err != nil {
_, _ = w.Write([]byte("Error opening repo: " + err.Error()))