aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2010-03-19 02:45:15 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2010-03-19 02:45:15 -0400
commit0e1ef2f1029243352f81aa5bfe078115cb8628db (patch)
treec1bfb648ac86119811941ac76bc95ac953fad824
parentd27278abb8fb1e79182c2cc2be7f9612b0a2812c (diff)
downloadgit-hooks-0e1ef2f1029243352f81aa5bfe078115cb8628db.tar.gz
git-hooks-0e1ef2f1029243352f81aa5bfe078115cb8628db.tar.bz2
Display both the hook name and script name
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-xgit-hooks4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-hooks b/git-hooks
index d7ddc7c..79e5ae8 100755
--- a/git-hooks
+++ b/git-hooks
@@ -50,7 +50,9 @@ function run_hooks
shift 1
for hook in `list_hooks_in_dir "${dir}"`
do
- echo -e "@@ Running hook: `basename "${hook}"`"
+ echo -n "@@ Running hook: "
+ echo -n `basename \`dirname "${hook}"\``
+ echo "/`basename "${hook}"`"
${hook} "$@"
done
}