Skip to content

git 2.40.0 index.skipHash incompatible with libgit2 #6531

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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