Hi all, recently I got a: remote: fatal: *object 534a44ef7703fdfe13e609b3e87e98bd52af60f8 is corrupted * error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side. fatal: *early EOF* fatal: index-pack failed
which later I found that the *read/write permissions* of the git database was wrong. How it went wrong? I do have a *pre-receive* hook that failed with an error and caused a *push*operation to abort. Note that the script does not perform any file operations or changes whatsever - it simply checks the current user and either exits true/false. Nevertheless there was a scripting error which it seems caused git to mangle the read/write permissions of some files. So I fixed it with: chmod -R ug+rwX <repo> ... and it worked again. Yes - I do suspect git of having a bug ... Hope this helps someone ... --
