diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:45:15 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:45:15 -0400 |
commit | 0e1ef2f1029243352f81aa5bfe078115cb8628db (patch) | |
tree | c1bfb648ac86119811941ac76bc95ac953fad824 | |
parent | d27278abb8fb1e79182c2cc2be7f9612b0a2812c (diff) | |
download | git-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-x | git-hooks | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |