From dac0be9c2b8491c609c94ca5f46ce8ffac56eea9 Mon Sep 17 00:00:00 2001 From: Carsten Hey Date: Sat, 10 Apr 2010 15:20:10 +0200 Subject: [PATCH 1/1] Don't call pre-commit hook if tg is not installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Carsten Hey Closes: http://bugs.debian.org/576221 Signed-off-by: Uwe Kleine-König --- tg.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tg.sh b/tg.sh index 91c374a..9d08d63 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" -- 2.30.2