Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Corrupted Git Repository (data stream error) [duplicate]

Tags:

git

I'm getting these errors:

X:\WAMP\www\topsecret>git fsck --full
error: inflate: data stream error (invalid code lengths set)
error: corrupt loose object '18076434b9cad667dbcf5be20162c506c95c2f55'
fatal: loose object 18076434b9cad667dbcf5be20162c506c95c2f55 (stored in .git/objects/18/076434b9cad667dbcf5be20162c506c95c2f55) is corrupt

I'm a total noob when it comes to GIT and my search for this exact error has come up with nothing. I'd really like to save this repo since it goes way back. Thanks.

GIT Version: 1.7.7.msysgit.0

like image 998
Jaybuz Avatar asked Feb 16 '12 23:02

Jaybuz


1 Answers

see if you can find a cloned repo and manually copy that object.

Here is how you can move an object:

http://www-cs-students.stanford.edu/~blynn/gitmagic/ch08.html#_the_object_database

objects are zipped so you can't just store the uncompressed contents directly into the objects directory.

like image 54
Adam Dymitruk Avatar answered Oct 06 '22 22:10

Adam Dymitruk