fix(api): commit tree SHA is the commit ID (#39449)

Fixes #39448
This commit is contained in:
Max Azatian authored and GitHub committed 2026-09-29 11:56:51 +00:00
1 parent 6bb74ed65d
commit ebcb0150d1
4 files changed
+23 -2

No files matched your search

+1
View File
@@ -66,6 +66,7 @@ func convertPGPSignature(c *object.Commit) *CommitSignature {
func convertCommit(c *object.Commit) *Commit {
return &Commit{
ID: ParseGogitHash(c.Hash),
TreeID: ParseGogitHash(c.TreeHash),
CommitMessage: CommitMessage{MessageRaw: c.Message},
Committer: &c.Committer,
Author: &c.Author,