diff options
-rwxr-xr-x | git-hooks | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -50,9 +50,11 @@ function run_hooks shift 1 for hook in `list_hooks_in_dir "${dir}"` do - echo -n "@@ Running hook: " - echo -n `basename \`dirname "${hook}"\`` - echo "/`basename "${hook}"`" + if [ ! -z ${GIT_HOOKS_VERBOSE} ] ; then + echo -n "@@ Running hook: " + echo -n `basename \`dirname "${hook}"\`` + echo "/`basename "${hook}"`" + fi ${hook} "$@" done } |