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

Re: corrupt object on git-gc

From
Andreas Ericsson <ae@op5.se>
Date
Nov 9, 2007, 12:56 UTC
Message-ID
<4734590D.6000104@op5.se>
In-Reply-To
<6C2C79E72C305246B504CBA17B5500C9029A36F2@mtlexch01.mtl.com>
Yossi Leybovich wrote:
Show 10 quoted lines
> Hi
> 
>  I know its loose but still I think there are references in the
> repository to this object.
> How I can remove it from the repository ?
> 
> 
> sleybo@SLEYBO-LT /w/work/EMC/ib.071030.001/ib
> $ mv .git/objects/4b ..
> 

That was not a very good idea. You just moved ALL objects whose hash begin with 4b out of the object database.

Try only moving the offending file out of the 4b directory.
Show 7 quoted lines
> sleybo@SLEYBO-LT /w/work/EMC/ib.071030.001/ib
> $ git-fsck --full
>               to    blob 4b920d658a05a66a9d18dd34b51d6e3a9f229ce1
>               to  commit 4b1aabfe3ecc12007535369a2ba17bcee776df64
>               to    blob 4b920d658a05a66a9d18dd34b51d6e3a9f229ce1
>               to    tree 4b89da873ce6e1b36a818d70d4665b3074f2354c
>               to    blob 4b920d658a05a66a9d18dd34b51d6e3a9f229ce1>

Notice how all of these start with 4b? Move the directory back and get rid of just the object that causes errors.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Yossi LeybovichNext: Nicolas Pitre
Message 9 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.