git post-receive hook not running

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

    The issue was related to the mounting of the filesystem. The partition was mounted as noexec, and therefore no files could be executed. This caused the hook not to run. I removed the noexec flag and it now works just fine.

提交回复
热议问题