diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-03 16:47:34 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-03 16:47:34 +0800 |
commit | 03ca1811215b6fc42d811ab7f5459cb26f9d06ce (patch) | |
tree | d199e98814f554f75493755869ed5fe0579c6340 | |
parent | Makefile: Put libraries after the source (diff) | |
download | forge-03ca1811215b6fc42d811ab7f5459cb26f9d06ce.tar.gz forge-03ca1811215b6fc42d811ab7f5459cb26f9d06ce.tar.zst forge-03ca1811215b6fc42d811ab7f5459cb26f9d06ce.zip |
HTTP: Fix old commit hash field on commit pagev0.1.11
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.
-rw-r--r-- | http_handle_repo_commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |