githooks - Best way to debug git-hooks -


what best way debug git-hooks?

the way prefer adding statements add output log file. example, following.

echo 'post-receive executed' >> hooks.log 

is there better approach or way logging?

this old question, future readers, 1 recommendation :

debugging hook shell script

i doubt script needs looked at, if turns out case, next step debug shell scripts (since default commit-msg hook is).

i start changing she-bang line #!/bin/sh #!/bin/sh -xv , revel in uber-verbose output script executed when git commit --amend


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -