Already viewed the following answers before posting this:
- Git not executing post-receive hook
- Git post-receive hook not running following push
- Git post-receive hook is not working
Although the pre-push hook is triggered successfully, the post-receive hook is not. I don't think this is a permission issue because they both have exactly the same rights:
-rwxr-xr-x@ 1 Malloc staff 86 May 10 15:57 post-receive
-rwxr-xr-x@ 1 Malloc staff 90 May 10 15:51 pre-applypatch
-rwxr-xr-x@ 1 Malloc staff 82 May 10 15:51 pre-commit
-rwxr-xr-x@ 1 Malloc staff 153 May 10 16:05 pre-push
Here is the content of the post-receive executable:
#!/bin/sh
echo "post-receive hook successfully triggered"
The following content is put in the pre-push hook:
#!/bin/sh
echo "pre-push hook successfully triggered"
Once I push to remote, the pre-push message is printed to the Terminal but not the post-receive.
Any idea what may be going wrong?