From: Junio C Hamano Date: Tue, 11 Dec 2007 05:44:42 +0000 (-0800) Subject: send-email: do not muck with initial-reply-to when unset. X-Git-Tag: v1.5.4-rc0~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ace9c2a9dd7c9e54194998fc6b7c677dbb7d0902;p=git.git 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 --- 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*?\s*$/>/; +if (defined $initial_reply_to && $_ ne "") { + $initial_reply_to =~ s/^\s*?\s*$/>/; +} if (!defined $smtp_server) { foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {