git post-receive hook not running

后端 未结 6 1987
被撕碎了的回忆
被撕碎了的回忆 2020-12-25 12:23

I have a bare repo server-side, and I am able to successfully commit and push from my local machine. However, the post-receive hook is not running. Details:

  • Us
6条回答
  •  情深已故
    2020-12-25 13:04

    Seems GIT will NOT run the post-receive hook if there are no changes to the code base.

    In my case,

    The post hook was not getting executed, but the "push" operation kept returning the following message.

    Everything up-to-date

    So I just created an empty file in my code, did commit and then pushed to remote. On which the post-receive hook got executed.

提交回复
热议问题