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

Unsupported git index version 4 #1061

Open
mtene opened this issue Oct 7, 2022 · 1 comment
Open

Unsupported git index version 4 #1061

mtene opened this issue Oct 7, 2022 · 1 comment

Comments

@mtene
Copy link

mtene commented Oct 7, 2022

Dulwich fails to operate on git clones created by git 2.27.
The assertion that the index version should be 1,2,3 (index.py) fails, discovering version 4.
Are there plans to support this new format?
https://git-scm.com/docs/index-format

As a workaround, one can ask git to downgrade the index version:
git update-index --index-version 3
which makes dulwich succeed

@jelmer
Copy link
Owner

jelmer commented Oct 7, 2022

This format doesn't appear to be used by default as far as I can tell (on git 2.37 here). Perhaps in specific circumstances only?

I don't have concrete plans to work on support for it myself (there's a long backlog of higher priority items), but happy to review PRs that add support. This should be fairly straightforward to do by patching dulwich.index.read_cache_entry to understand the new prefixed path format.

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

No branches or pull requests

2 participants