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

Re: rogue tree objects, how to diagnose?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2009, 06:40 UTC
Message-ID
<7vvdqtagpp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090228.215752.122159841.davem@davemloft.net>
David Miller <davem@davemloft.net> writes:
> Indeed I have some serious corruption in my pack file.

Just a sanity check; did you run verify-pack on each packfile to validate that suspicion?

Show 14 quoted lines
> I've put this .git dir up at:
>
> 	http://vger.kernel.org/~davem/netnext26_git.tar.gz
>
> if anyone wants to have a look.
>
> davem@sunset:~/src/GIT/net-next-2.6$ git fsck --full
> error: d7d82ec12e618a3152a82f7fbd459ad285403740: invalid sha1 pointer in cache-tree
> error: 95381186c4ef9d69f56bb6a9f7334ebe81dd023c: invalid sha1 pointer in cache-tree
> error: 6bea4ad565fff638d396298cb6ee7ad6a31ca252: invalid sha1 pointer in cache-tree
> error: 3c8b516f2a9634410f6c3a0ee639627d7c4a83d2: invalid sha1 pointer in cache-tree
> error: 11f0695e84bc3f83a6eea0d6fb0af2789de351ef: invalid sha1 pointer in cache-tree
> error: 7b3c81544c3117201c160af43fa983d68c614e3d: invalid sha1 pointer in cache-tree
> error: c9ee57c5c20c3b7a2d7784a4172aef8b34c3a844: invalid sha1 pointer in cache-tree

These may only indicate that your .git/index is corrupt but the object database may still be good.

We fixed an incorrect "missing object" diagnosis when your repository borrows objects from another repository via the alternates mechanism (check if .git/objects/info/alternates refers to another repository) fairly recently. "Missing objects" could be false alarms.

Previous: David MillerNext: David Miller
Message 7 of 8 in “rogue tree objects, how to diagnose?”
  1. David MillerMar 1, 2009
  2. Jeff KingMar 1, 2009
  3. David MillerMar 1, 2009
  4. Jeff KingMar 1, 2009
  5. David MillerMar 1, 2009
  6. David MillerMar 1, 2009
  7. Junio C HamanoMar 1, 2009
  8. David MillerMar 1, 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.