Change git's shell to git-shell (for security purpose)
add set -e in hook
Remove useless lines