From 03ca1811215b6fc42d811ab7f5459cb26f9d06ce Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 16:47:34 +0800 Subject: 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index 338ef8d..5ac315e 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -73,7 +73,7 @@ func httpHandleRepoCommit(writer http.ResponseWriter, request *http.Request, par 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) -- cgit v1.2.3