I work with Git 1.95 (local) and 1.71 (remote). I've read all of the threads on Git hooks that don't work, but I haven't found a solution yet.
What's happening: I have set a remote non-bare repository to which I push from the local repo through ssh. The post-receive hook is very simple:
#!/bin/bash -x
touch worked.txt
I added the necessary permissions with chmod +x
, and it works when executed manually. I ended up reading this, but still I don't have a solution. This should be very simple, but instead it's very frustrating.