diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-19 08:53:56 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-19 08:53:56 +0800 |
commit | 16ee8dd6106814e386c5b69980b2b818528509ba (patch) | |
tree | 8ffe073a4a8f31884b1d85deaad41d237854ebd6 | |
parent | repo/contrib: Display merge request diffs (diff) | |
download | forge-16ee8dd6106814e386c5b69980b2b818528509ba.tar.gz forge-16ee8dd6106814e386c5b69980b2b818528509ba.tar.zst forge-16ee8dd6106814e386c5b69980b2b818528509ba.zip |
repo/contrib: Fix destination_commit param
-rw-r--r-- | http_handle_repo_contrib_one.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |