Post Commit Hook Not Running

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

    Try putting some echo lines before and after the perl line like this:

    echo "post-commit started"
    perl ...........
    echo "post-commit finished"
    

    This way you can confirm if the script is actually running, because when you run

    git commit
    

    you should see

    post-commit started
    post-commit finished
    

    Towards the end of your output.

提交回复
热议问题