Skip to content

git 2.40.0 index.skipHash incompatible with libgit2 #6531

@ehuss

Description

@ehuss

The recently introduced index.skipHash config setting seems to create index files that are incompatible with libgit2. This option is enabled with feature.manyFiles which some users have enabled to improve performance.

See: git/git@ffd9238

Reproduction steps

  1. With git 2.40.0, run git clone -c index.skipHash=true https://github.com/libgit2/libgit2.git
  2. Run libgit2/build/examples/lg2 status

Expected behavior

Successfully opens the repo.

Actual behavior

Fails with the error:

Could not get status [-1] - invalid data in index - calculated checksum does not match expected

Version of libgit2 (release number or SHA1)

8f8e805 or 1.6.2

Operating system(s) tested

Any

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