Package: topgit Severity: important Tags: upstream patch Please don't call pre-commit hook if tg is not installed.
Regards Carsten Signed-off-by: Carsten Hey <cars...@debian.org> --- tg.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tg.sh b/tg.sh index 1f259e3..455f187 100644 --- a/tg.sh +++ b/tg.sh @@ -54,6 +54,8 @@ setup_hook() else hook_call="exec $hook_call" fi + # Don't call hook if tg is not installed + hook_call="if which \"$tg\" > /dev/null; then $hook_call; fi" # Insert call into the hook { echo "#!/bin/sh" -- 1.6.5
signature.asc
Description: Digital signature