Skip to content

support all git pack object types #348

Description

@miki725

Git has multiple pack object types:

https://git-scm.com/docs/pack-format

Currently chalk can only understand either commit or tag object types however packed repos can store refs themselves as deltas. This means that if the repos HEAD points to such an object, chalk will not be able to understand it.

For example change:

git.symbolic_ref(f"refs/tags/foo/{random_hex}-2")

to use {random_hex}-1 tag and chalk will not report any git information at all.

Although implementing full delta spec which has multiple instructions is more complicated so probably worth looking into getting libgit into chalk as a dep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions