From ace9c2a9dd7c9e54194998fc6b7c677dbb7d0902 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 10 Dec 2007 21:44:42 -0800 Subject: 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 --- git-send-email.perl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index c0e1dd348c..1d6f466453 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 )) { -- cgit v1.2.3