For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one know what am I doing wrong?
git push origin master
Make sure that the script file itself is actually executable.
chmod ug+x .git/hooks/post-receive
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
If you're using http, know that HTTP does not support hooks and you could ssh:/
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
5 years ago
3 years ago