chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tg mail: document config setting to prevent unintended mass mail sending
[topgit.git]
/
tg.sh
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"