git index containing tree extension for unknown path
- From
Christian Halstrick <christian.halstrick@gmail.com>
- Date
- Jan 21, 2015, 16:14 UTC
- Message-ID
- <CAENte7gqKpqr=ENOEN_3s3Fz6gc-Kt70OJyZojbgwhR7YVX6Zg@mail.gmail.com>
Is it allowed that the git index contains a tree extension mentioning patch 'x/y/z' while the only entry in the index is a '.gitattributes' files in the root?
I have such a repo in a bug report against JGit [1]. Native git has no problems with this repo but JGit can't read such an index. I am wondering whether such a index is valid.
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=457152