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

Re: [PATCH] Improve on the 'invalid object' error message at commit time

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 14, 2009, 19:43 UTC
Message-ID
<7vab37giep.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.2.01.0907141119190.13838@localhost.localdomain>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> ... one thing that I 
> started wondering about was whether the problem Florian saw was about one 
> of the files he had done "git add" on, or whether it was a tree entry that 
> was the result of "find_subtree()".
Same here.

Historically, cache-tree had issues that same corner case codepaths forgot invalidating subtrees when they should that could have led to kinds of bugs that are hard to diagnose. I think the API got harder to make that kind of mistakes while we squashed those bugs, though.

Previous: Linus Torvalds
Message 9 of 9 in “Recover broken git repository?”
  1. Florian BreitwieserJul 14, 2009
  2. Alex RiesenJul 14, 2009
  3. Nicolas SebrechtJul 14, 2009
  4. Jakub NarebskiJul 14, 2009
  5. Linus TorvaldsJul 14, 2009
  6. Stefan-W. HahnJul 14, 2009
  7. Stefan-W. HahnJul 14, 2009
  8. Improve on the 'invalid object' error message at commit timeLinus Torvalds, Jul 14, 2009
  9. Junio C HamanoJul 14, 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.