2

I just want to know whether the post-receive git hook scripts have been executed, so I added an echo command to the bash script like this:

#!/bin/sh
echo "just test"

When I run git push on local repo, nothing happened on the remote server. Where can I see the echoed result string from remote server or somewhere else? I have run chmod +x post-receive and the owner of post-receive is git:git

kdbanman
  • 10,161
  • 10
  • 46
  • 78
Lynnic
  • 21
  • 2
  • 1
    Of course you modified the script on the _remote_ repository, right? And the push you tried to run succeeded, and you did have modifications to push? – gbr Oct 23 '15 at 20:53
  • To be sure you're doing the right things I advise you to make a quick test between two local temporary repositories – gbr Oct 23 '15 at 20:55
  • Check the server logs – Vamsi Ravi Oct 23 '15 at 22:43
  • Did you figure out the issue? I met it now, though it worked before. – Leon Feb 19 '17 at 03:11

0 Answers0