diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
commit | e347064abe3ce4c90fbad23d36e5d61a149e2389 (patch) | |
tree | b587b82f918800b6ea457ece60d778b39a92dbe1 /http_handle_repo_log.go | |
parent | README.md: Add details in features supported by git repos (diff) | |
download | forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.gz forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.zst forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.zip |
http_*: Refactor to reduce duplication
Diffstat (limited to 'http_handle_repo_log.go')
-rw-r--r-- | http_handle_repo_log.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go index 72943be..d4422b7 100644 --- a/http_handle_repo_log.go +++ b/http_handle_repo_log.go @@ -8,7 +8,7 @@ import ( // TODO: I probably shouldn't include *all* commits here... func handle_repo_log(w http.ResponseWriter, r *http.Request, params map[string]any) { - group_name, repo_name, ref_name := params["group_name"].(string), params["repo_name"].(string), params["ref"].(string) + group_name, repo_name, ref_name := params["group_name"].(string), params["repo_name"].(string), params["ref_name"].(string) repo, description, err := open_git_repo(r.Context(), group_name, repo_name) if err != nil { http.Error(w, "Error opening repo: "+err.Error(), http.StatusInternalServerError) |