chiark / gitweb /
Check for git-send-email and die if not found
[topgit.git] / tg-mail.sh
index f5c0cf4313531aa60255e2de1fa2911e08b09ab5..8d3b6320a11dfb945f2a70821ae7063a431dffff 100644 (file)
@@ -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