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

Re: corrupt object on git-gc

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 9, 2007, 17:45 UTC
Message-ID
<7vy7d7tiqz.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<6C2C79E72C305246B504CBA17B5500C9029A36F1@mtlexch01.mtl.com>
"Yossi Leybovich" <sleybo@mellanox.co.il> writes:
Show 8 quoted lines
> Just tried it :
>
> sleybo@SLEYBO-LT /w/work/EMC/ib.071030.001/ib
> $ git-cat-file.exe -p 4b9458b3786228369c63936db65827de3cc06200
> error: corrupt loose object '4b9458b3786228369c63936db65827de3cc06200'
> fatal: Cannot read object 4b9458b3786228369c63936db65827de3cc06200
>
> Is this say something ?

Linus gave a good description of how to diagnose and assess the extent of damage and potentially recover, so I won't repeat it, but I am more interested in understanding how the object got corrupted in the first place.

One thing the above says, with the .exe extension, is that you are using it on some DOS derived platform. Is this Cygwin? Is this WinGit? Is this (infamous) "text mount"?

Previous: Yossi LeybovichNext: Alex Riesen
Message 6 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.