Skip to content

[Bug] Unknown Commit Headers Break Commit Message #2130

@thomasrichner-oviva

Description

@thomasrichner-oviva

Hi there!

It seems that Fork struggles to properly parse git commit objects with unknown headers.

The commit message looks pretty garbled:

Actual: offeesalt 00000000004783a5
Expected: Added Hello World

image

Here the raw commit object via git cat-file -p c0ffeed

tree ad123a385f6c7d11ca711427e575d1530239caad
author Thomas Richner <redacted> 1715787887 +0200
committer Thomas Richner <redacted> 1715787887 +0200
coffeesalt 00000000004783a5

Added Hello World

Minimal repo to reproduce: repro.tgz

This specifc header is added by gitc0ffee. The CLI client deals perfectly fine with it.

$ git log
commit c0ffeedf0d5d80a8a91526ee039f7d2e0653ee3f (HEAD -> main)
Author: Thomas Richner <redacted>
Date:   Wed May 15 17:44:47 2024 +0200

    Added Hello World

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions