From 03ca1811215b6fc42d811ab7f5459cb26f9d06ce Mon Sep 17 00:00:00 2001 From: Runxi Yu <me@runxiyu.org> Date: Thu, 03 Apr 2025 16:47:34 +0800 Subject: [PATCH] HTTP: Fix old commit hash field on commit page In 87b1ab51 we translated this part of Go code from snake_case to camelCase but the sed expression went rogue a bit and made one of the fields broken. --- http_handle_repo_commit.go | 2 +- diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index 338ef8d36f83e7d48bd216af7ed65f8d7680d50b..5ac315e293f112a2d8616f7e8f2faac0150c8154 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -73,7 +73,7 @@ if err != nil { errorPage500(writer, params, "Error getting patch from commit: "+err.Error()) return } - params["parent_commitHash"] = parentCommitHash.String() + params["parent_commit_hash"] = parentCommitHash.String() params["patch"] = patch params["file_patches"] = makeUsableFilePatches(patch) -- 2.48.1