Super small workaround, if you need to run the post-receive hook on a repository but do not want to push changes:

git commit --allow-empty -m "push me" && git push