<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>matt@rocket:202% git clone githost:/Data/git/wikidbs<br>Cloning into 'wikidbs'...<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>error: unable to find d33fdfb4c993cccc51e2c13f8da9e11a640a50a5<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>error: unable to find d33fdfb4c993cccc51e2c13f8da9e11a640a50a5<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>fatal: loose object d33fdfb4c993cccc51e2c13f8da9e11a640a50a5 (stored in ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5) is corrupt<br>fatal: The remote end hung up unexpectedly<br>matt@rocket:203% ssh githost</div><div>matt@githost:1% cd /Data/git/wikidbs</div><div>matt@githost:2% cp -R . `pwd`.corrupt</div><div>matt@githost:3% git fsck --full<br>error: object file ./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e is empty<br>error: unable to mmap ./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e: No such file or directory<br>error: 7ab8ef6e1ed699731b7915d8547b411628e93a0e: object corrupt or missing: ./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>error: unable to mmap ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5: No such file or directory<br>error: d33fdfb4c993cccc51e2c13f8da9e11a640a50a5: object corrupt or missing: ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5<br>error: object file ./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b is empty<br>error: unable to mmap ./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b: No such file or directory<br>error: dbdc3f1387e9d130fa9f6a9b565ba93ac025c80b: object corrupt or missing: ./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b<br>Checking object directories: 100% (256/256), done.<br>Checking objects: 100% (89181/89181), done.<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is empty<br>fatal: loose object d33fdfb4c993cccc51e2c13f8da9e11a640a50a5 (stored in ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5) is corrupt<br>205.409u 25.446s 3:53.95 98.6%    0+0k 0+0io 113550pf+0w<br></div><div><br></div><div>matt@githost:4% sudo cross_fingers --force --quiet \<br></div><div>>> # --quiet included as I do not want to know what actually happens here<br></div><div>command failed</div><div><br></div><div>As the master repo was corrupted as well as the local copy the solution was to fix the local copy, create a new bare repo and push the cleaned local copy to the new master.  Once done we cloned the master and compared to the cleaned local copy to validate we got a good new master repo.</div><div><br></div><div><a href="https://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty">https://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty</a></div><div><br></div><div>Big public thank you to Michael Starch for the pointer to this site and to double check the recovery.<br></div><div><br></div><div>Matt</div><div><br></div><div><div dir="ltr" class="gmail_signature">---------<br>Matthew Campbell<br>Architect Lead, Office of the CTO<br><br>Kaiser Permanente<br>Green Center 041R08<br>99 S. Oakland<br>Pasadena, CA 91101<br><br>626-564-7228 (office)<br>8-338-7228 (tie-line)<br>626-460-9781 (mobile)<br>---------<br><a href="http://kp.org/thrive" target="_blank">kp.org/thrive</a></div></div></div></div></div></div>