From 16ee8dd6106814e386c5b69980b2b818528509ba Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 08:53:56 +0800 Subject: repo/contrib: Fix destination_commit param --- http_handle_repo_contrib_one.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_handle_repo_contrib_one.go b/http_handle_repo_contrib_one.go index a09b6e8..42edd8c 100644 --- a/http_handle_repo_contrib_one.go +++ b/http_handle_repo_contrib_one.go @@ -47,7 +47,7 @@ func handle_repo_contrib_one(w http.ResponseWriter, r *http.Request, params map[ http.Error(w, "Error getting destination commit: "+err.Error(), http.StatusInternalServerError) return } - params["source_commit"] = source_commit + params["destination_commit"] = destination_commit patch, err := destination_commit.Patch(source_commit) params["file_patches"] = make_usable_file_patches(patch) -- cgit v1.2.3