From 54926a719de46b3c359f2f7ce3c29ff4fe55397b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 11:20:24 +0800 Subject: Remove underscores from Go code, pt 3 --- http_handle_repo_raw.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http_handle_repo_raw.go') diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go index a0f7430..cfe03b6 100644 --- a/http_handle_repo_raw.go +++ b/http_handle_repo_raw.go @@ -26,7 +26,7 @@ func handle_repo_raw(w http.ResponseWriter, r *http.Request, params map[string]a 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 } @@ -69,7 +69,7 @@ func handle_repo_raw(w http.ResponseWriter, r *http.Request, params map[string]a return } - params["files"] = build_display_git_tree(target) + params["files"] = makeDisplayTree(target) render_template(w, "repo_raw_dir", params) } -- cgit v1.2.3