Hi all, I've created a Git app for my Git repositories on my Webfaction account and created this Git post-receive hook:
Which works, most of the time, fine. Sometimes, after pushing changes from my PC or laptop, I get this error:
The commit(s) are successfully pushed, but the post-receive hook is not being executed. Any idea what causes this error (and how to fix it)? I've recreated the git repo several times and then it works, but after a while (a few hours / days / commits) the error is back. Thanks. asked 08 Nov '12, 17:18 Peter |
Try running git-fsck on the repo to check for corruption. answered 08 Nov '12, 17:33 johns Sorry, I forgot to mention that I already tried that.
(08 Nov '12, 17:49)
Peter
Would it be possible to run the action with increased verbosity and submit the report as a support ticket so we can take a closer look?
(08 Nov '12, 18:02)
johns
|
I have the same error. I've pinpointed it to the "git reset --hard" command. Without that, it I have no problems. Any progress? answered 20 May '13, 15:08 mettienne |
This git commit contains an explanation of why these messages were downgraded from errors to warnings, suggesting that they're not a real problem. It seems to be a race condition, maybe related to how Apache handles the request.