aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_raw.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_raw.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_raw.go')
-rw-r--r--http_handle_repo_raw.go4
1 files changed, 2 insertions, 2 deletions
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)
}