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
- With git 2.40.0, run
git clone -c index.skipHash=true https://github.com/libgit2/libgit2.git
- 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
The recently introduced
index.skipHashconfig setting seems to create index files that are incompatible with libgit2. This option is enabled withfeature.manyFileswhich some users have enabled to improve performance.See: git/git@ffd9238
Reproduction steps
git clone -c index.skipHash=true https://github.com/libgit2/libgit2.gitlibgit2/build/examples/lg2 statusExpected behavior
Successfully opens the repo.
Actual behavior
Fails with the error:
Version of libgit2 (release number or SHA1)
8f8e805 or 1.6.2
Operating system(s) tested
Any