aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_tree.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 11:20:24 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 11:20:24 +0800
commit54926a719de46b3c359f2f7ce3c29ff4fe55397b (patch)
treeb81028ae83c949807313a54296bf6d0b59bea8a0 /http_handle_repo_tree.go
parentRemove underscores from Go code, pt 2 (diff)
downloadforge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.gz
forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.zst
forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.zip
Remove underscores from Go code, pt 3
Diffstat (limited to 'http_handle_repo_tree.go')
-rw-r--r--http_handle_repo_tree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go
index ae9efbc..121e76a 100644
--- a/http_handle_repo_tree.go
+++ b/http_handle_repo_tree.go
@@ -31,7 +31,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request, params map[string]
repo, path_spec = params["repo"].(*git.Repository), strings.TrimSuffix(raw_path_spec, "/")
params["path_spec"] = path_spec
- if ref_hash, err = get_ref_hash_from_type_and_name(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil {
+ if ref_hash, err = getRefHash(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil {
http.Error(w, "Error getting ref hash: "+err.Error(), http.StatusInternalServerError)
return
}
@@ -98,7 +98,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request, params map[string]
}
params["readme_filename"], params["readme"] = render_readme_at_tree(target)
- params["files"] = build_display_git_tree(target)
+ params["files"] = makeDisplayTree(target)
render_template(w, "repo_tree_dir", params)
}