aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_commit.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 11:01:52 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 11:01:52 +0800
commit88d054811df785b92b1b76dd91265849af8f29b3 (patch)
tree522a9175290322cbe615ba98acf07a8a81888fcc /handle_repo_commit.go
parentgit_format_patch.go: Remove garbage printf (diff)
downloadforge-88d054811df785b92b1b76dd91265849af8f29b3.tar.gz
forge-88d054811df785b92b1b76dd91265849af8f29b3.tar.zst
forge-88d054811df785b92b1b76dd91265849af8f29b3.zip
*: Migrate to the new path scheme
Diffstat (limited to '')
-rw-r--r--handle_repo_commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle_repo_commit.go b/handle_repo_commit.go
index 58c3992..aefd58b 100644
--- a/handle_repo_commit.go
+++ b/handle_repo_commit.go
@@ -16,9 +16,9 @@ type usable_file_patch struct {
Chunks []diff.Chunk
}
-func handle_repo_commit(w http.ResponseWriter, r *http.Request) {
+func handle_repo_commit(w http.ResponseWriter, r *http.Request, params map[string]string) {
data := make(map[string]any)
- group_name, repo_name, commit_id_specified_string := r.PathValue("group_name"), r.PathValue("repo_name"), r.PathValue("commit_id")
+ group_name, repo_name, commit_id_specified_string := params["group_name"], params["repo_name"], params["commit_id"]
data["group_name"], data["repo_name"] = group_name, repo_name
repo, err := open_git_repo(group_name, repo_name)
if err != nil {