Post Commit Hook Not Running

后端 未结 4 1894
遥遥无期
遥遥无期 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:41

    In addition to the answers noted here, note that if you are expecting user input in your hook, you need to redirect standard input to the keyboard like so (at least for a bash script);

    exec < /dev/tty
    

提交回复
热议问题