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
If you're using http, know that HTTP does not support hooks and you could ssh:/
Make sure that the script file itself is actually executable.
chmod ug+x .git/hooks/post-receive
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago
3 years ago