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

corrupt object on git-gc

From
YLYossi Leybovich <sleybo@mellanox.co.il>
Date
Nov 8, 2007, 23:59 UTC
Message-ID
<6C2C79E72C305246B504CBA17B5500C9029A36A1@mtlexch01.mtl.com>
In-Reply-To
<458BC6B0F287034F92FE78908BD01CE814472B3D@mtlexch01.mtl.com>
Hi

I wonder if someone can help in this error I tried to do git-gc and got error on corrupted object.

I do the following:

$ git-gc Generating pack... Done counting 3037 objects. Deltifying 3037 objects... error: corrupt loose object '4b9458b3786228369c63936db65827de3cc06200' fatal: object 4b9458b3786228369c63936db65827de3cc06200 cannot be read error: failed to run repack

sleybo@SLEYBO-LT /w/work/EMC/ib.071030.001/ib $ cd .git/objects/4b/

sleybo@SLEYBO-LT /w/work/EMC/ib.071030.001/ib/.git/objects/4b $ git-fsck-objects.exe 9458b3786228369c63936db65827de3cc06200 error: corrupt loose object '4b9458b3786228369c63936db65827de3cc06200' error: 4b9458b3786228369c63936db65827de3cc06200: object corrupt or missing error: invalid parameter: expected sha1, got '9458b3786228369c63936db65827de3cc0 6200' missing blob 4b9458b3786228369c63936db65827de3cc06200

Unfortunately I can't get this object from backup directories as advise in the FAQ. Can this object manually fixed by any tool? (the object is attached) I don't even know to which file/tree/commit it belong how can I know that ?

Thanks Yossi

Previous: Christian CouderNext: Christian Couder
Message 3 of 10 in “missing object on git-gc”
  1. Yossi LeybovichNov 8, 2007
  2. Christian CouderNov 8, 2007
  3. corrupt object on git-gcYossi Leybovich, Nov 8, 2007
  4. Christian CouderNov 9, 2007
  5. Yossi LeybovichNov 9, 2007
  6. Junio C HamanoNov 9, 2007
  7. Alex RiesenNov 9, 2007
  8. Yossi LeybovichNov 9, 2007
  9. Andreas EricssonNov 9, 2007
  10. Nicolas PitreNov 9, 2007

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.