git post-receive hook not running

后端 未结 6 1938
被撕碎了的回忆
被撕碎了的回忆 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 12:58

    Are you sure it's not running? It must be running, you just can't see it. My guess is that there is not stdout set to your ssh session at the time it's executed, so you won't ever see the output of your echo. The link suggests testing it locally, not via ssh.

提交回复
热议问题