chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
563ddef
)
Don't call pre-commit hook if tg is not installed
author
Carsten Hey
<carsten@debian.org>
Sat, 10 Apr 2010 13:20:10 +0000
(15:20 +0200)
committer
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Sat, 10 Apr 2010 13:20:26 +0000
(15:20 +0200)
Signed-off-by: Carsten Hey <carsten@debian.org>
Closes: http://bugs.debian.org/576221
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
tg.sh
patch
|
blob
|
history
diff --git
a/tg.sh
b/tg.sh
index 91c374a0978a8a7bcb447130a032f264b14d5c91..9d08d636af97b6b4f3ad574b7fa486cca119f7aa 100644
(file)
--- 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"