corrupt object on git-gc
- From
- Yossi 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