From: Andreas Ericsson Date: Fri, 09 Nov 2007 12:56:45 GMT Subject: Re: corrupt object on git-gc Message-ID: <4734590D.6000104@op5.se> In-Reply-To: <6C2C79E72C305246B504CBA17B5500C9029A36F2@mtlexch01.mtl.com> Yossi Leybovich wrote: > 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. > 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