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_index.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_index.go')
-rw-r--r-- | http_handle_repo_index.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index c9c4949..ea1854e 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -17,7 +17,6 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string http.Error(w, "Error getting repo HEAD: "+err.Error(), http.StatusInternalServerError) return } - params["ref"] = head.Name().Short() head_hash := head.Hash() recent_commits, err := get_recent_commits(repo, head_hash, 3) if err != nil { |