chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'topgit-0.7' of git://repo.or.cz/topgit
[topgit.git]
/
tg-mail.sh
diff --git
a/tg-mail.sh
b/tg-mail.sh
index f5c0cf4313531aa60255e2de1fa2911e08b09ab5..4a684644a3977d0c2174e7aa7a8f7f5eeed97031 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"
base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" ||
die "not a TopGit-controlled branch"
+if ! git send-email --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
if [ -n "$in_reply_to" ]; then
send_email_args="$send_email_args --in-reply-to=$in_reply_to"
fi