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:
8c77c34
)
Check for git-send-email and die if not found
author
martin f. krafft
<madduck@debian.org>
Wed, 21 Jan 2009 03:36:45 +0000
(14:36 +1100)
committer
martin f. krafft
<madduck@debian.org>
Wed, 21 Jan 2009 03:37:31 +0000
(14:37 +1100)
Signed-off-by: martin f. krafft <madduck@debian.org>
tg-mail.sh
patch
|
blob
|
history
diff --git
a/tg-mail.sh
b/tg-mail.sh
index f5c0cf4313531aa60255e2de1fa2911e08b09ab5..8d3b6320a11dfb945f2a70821ae7063a431dffff 100644
(file)
--- a/
tg-mail.sh
+++ b/
tg-mail.sh
@@
-29,6
+29,10
@@
done
base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" ||
die "not a TopGit-controlled branch"
+if ! git send-emmail --help >/dev/null 2>&1; then
+ die "git send-email command not available"
+fi
+
if [ -n "$in_reply_to" ]; then
send_email_args="$send_email_args --in-reply-to=$in_reply_to"
fi