is there any way to enable echo in git hook
/var/git/repositories/project.git/hooks/post-update #!/bin/bash unset GIT_DIR; echo '========post-update hook=========' cd /var/project; git reset --hard; git checkout testing; git pull; chmod -R 774 ./lib update-apps
desired git output to another computer:
#git push ... Writing objects: 100% (10/10), 5.98 KiB, done. Total 10 (delta 3), reused 8 (delta 1) ========post-update hook========= cd /var/project git reset --hard git checkout testing git pull chmod -R 774 ./lib update-apps
This is just an example; a valid command chain can be more complex.
and crash somewhere
Should I redirect stdout to stderr?
UPDATE
I currently have the normal git push output, and then ========post-update hook========= ... and nothing
ABOUT! git version 1.5.6.5
source share