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

Fixes #39448
This commit is contained in:
Max Azatian
2026-09-29 13:56:51 +02:00
committed by GitHub
parent 6bb74ed65d
commit ebcb0150d1
4 changed files with 23 additions and 2 deletions
+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,