git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ JGIT ] incompatiblity found in DirCache

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Sep 9, 2009, 21:11 UTC
Message-ID
<200909092311.07145.robin.rosenberg.lists@dewire.com>
In-Reply-To
<4AA7FA2B.4090707@writeme.com>
onsdag 09 september 2009 20:55:39 skrev "Adam W. Hawks" <awhawks@writeme.com>:
> 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
Previous: Adam W. HawksNext: Shawn O. Pearce
Message 2 of 3 in “[ JGIT ] incompatiblity found in DirCache”
  1. Adam W. HawksSep 9, 2009
  2. Robin RosenbergSep 9, 2009
  3. Shawn O. PearceSep 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.