Post Commit Hook Not Running

后端 未结 4 1892
遥遥无期
遥遥无期 2020-12-24 10:43

My post commit hook is not running after git. I have verified that the hook does work if I just run it from the terminal. The code in the hook is:

#!/bin/s         


        
4条回答
  •  失恋的感觉
    2020-12-24 11:38

    I'll leave this here as an answer because I stumbled upon my own answer for when my post-commit hook wasn't running:

    chmod +x .git/hooks/post-commit

    Probably applies to any kind of hook. In fact, probably applies to any kind of script.

提交回复
热议问题