aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-10 21:44:42 -0800
committerJunio C Hamano <gitster@pobox.com>2007-12-11 00:38:46 -0800
commitace9c2a9dd7c9e54194998fc6b7c677dbb7d0902 (patch)
tree75156308ea9208e1d98274369f0b7345317d9981 /git-send-email.perl
parent28072a5d303b212695ef8b70f24cfed069ec94b8 (diff)
downloadgit-ace9c2a9dd7c9e54194998fc6b7c677dbb7d0902.tar.gz
git-ace9c2a9dd7c9e54194998fc6b7c677dbb7d0902.tar.xz
send-email: do not muck with initial-reply-to when unset.
When not prompting, initial_reply_to can be left unset. Do not try to sanitize it and get useless warning. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index c0e1dd348..1d6f46645 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -368,9 +368,10 @@ if ($thread && !defined $initial_reply_to && $prompting) {
$initial_reply_to = $_;
}
-
-$initial_reply_to =~ s/^\s*<?/</;
-$initial_reply_to =~ s/>?\s*$/>/;
+if (defined $initial_reply_to && $_ ne "") {
+ $initial_reply_to =~ s/^\s*<?/</;
+ $initial_reply_to =~ s/>?\s*$/>/;
+}
if (!defined $smtp_server) {
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {