diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:46:04 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:50:54 -0400 |
commit | 539cb1585458a4b8cde50bd2cf0f897e9e5c99cf (patch) | |
tree | 1a1efd5d91123cde3a0a0cd628d1ce6a78fb95d5 /git-hooks | |
parent | 0e1ef2f1029243352f81aa5bfe078115cb8628db (diff) | |
download | git-hooks-539cb1585458a4b8cde50bd2cf0f897e9e5c99cf.tar.gz git-hooks-539cb1585458a4b8cde50bd2cf0f897e9e5c99cf.tar.bz2 |
Only echo the name of the script and hook if GIT_HOOKS_VERBOSE is set.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
Diffstat (limited to 'git-hooks')
-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 } |