onsdag 09 september 2009 20:55:39 skrev "Adam W. Hawks" [off-list ref]:
When using the DirCache interface to the index you can create a invalid/corrupt tree for git 1.6.5.
The problem seems to be you can add a path to the index that starts with a "/" and DirCache creates a entry with a mode but no path.
This causes git 1.6.5 to fail with a corrupt tree.
I think there are more ways of entering bad stuff. Preventing a deliberate programmatic creation of invalid trees is probably not the most important
thing, but then again, validating the data to prevent e.g. the EGit plugin from doing it by mistake due to bugs could probably
be worthwhile.
-- robin