How to fix GIT error: object file is empty?
I had a similar problem. My laptop ran out of battery during a git operation. Boo. I didn't have any backups. (N.B. Ubuntu One is not a backup solution for git; it will helpfully overwrite your sane repository with your corrupted one.)
https://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty