Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid data in index - calculated checksum does not match expected #81

Open
tummychow opened this issue Apr 6, 2023 · 2 comments
Open
Labels
upstream Blocked on upstream libgit2/git2rs

Comments

@tummychow
Copy link
Owner

$ git absorb -v
Apr 06 16:57:27.710 CRIT absorb failed, err: invalid data in index - calculated checksum does not match expected; class=Index (10), line: 117, module: git_absorb

just in case anyone runs into this, it's an upstream issue libgit2/libgit2#6531

workaround is to disable the offending option git config --local index.skipHash false. then you have to clear your index and restage all your changes so that the index gets built with the option disabled.

@zenspider
Copy link
Contributor

I got hit by this. It was from git config feature.manyFiles being set to true, which sets index.skipHash to true as well. I wound up keeping feature.manyFiles and setting index.skipHash to false. It feels a tad more sluggish, but at least I can run git absorb now.

@halostatue
Copy link
Contributor

This has been fixed in libgit2/libgit2#6738, so it should be in the next release of libgit2 (1.7.3 or later).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Blocked on upstream libgit2/git2rs
Projects
None yet
Development

No branches or pull requests

3 participants