10000 git_repository_open_bare isn't setting oid_type · Issue #6491 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content
git_repository_open_bare isn't setting oid_type #6491
@arroz

Description

@arroz

When opening a repository with git_repository_open_bare, the oid_type isn't set. This causes all the code that relies on it (like loading packed refs) to fail, since GIT_OID_SHA1 has value of 1, but the memory contents will be 0 if not set to any value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0