Invalid checksum in gitIndex
Getting below error even after updating to latest sf cli
Error (InternalError): An internal error caused this command to fail. isomorphic-git error: Invalid checksum in GitIndex buffer: expected 44b53f7ed7c05ccc9c922f479d524a607a4d64d9 but saw fb1eab1b06136705b614238e0b303ee46cfff8f3
Hello @hmultaniucop :wave: It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).
A few more things to check:
- Make sure you've provided detailed steps to reproduce your issue.
- A repository that clearly demonstrates the bug is ideal.
- Make sure you've installed the latest version of Salesforce CLI. (docs)
- Better yet, try the
rcornightlyversions. (docs)
- Better yet, try the
- Try running the
doctorcommand to diagnose common issues. - Search GitHub for existing related issues.
Thank you!
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
version 2.94.6-724977b
Hey @hmultaniucop, we have had occasional reports of this over the years. We were able to resolve a related issue in 2023, but haven't seen this much since.
Do you remember which version of the CLI you updated from? Was it a really old version?
Generally, deleting the source tracking files in you projects .sf folder will resolve the issue. Please let me know if you a consistent way to reproduce this error, and we can debug further
I've been having this issue suddenly too; never had it before. The only fix for me was to delete the ENTIRE .sf/orgs folder, sign out of the orgs and back in again; restarting the IDE between each step. I also updated git for good measure. Tracking was messed up after this so ran sf project tracking reset, now it seems to be functional again
In recent times we have been seeing similar issues on an intermittent basis. We have not been able to identify any particular circumstances to reproduce the problem.
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.