send-email: accept absolute path even on Windows

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Erik Faye-Lund
2009-07-27 21:05:40 +02:00
committed by Pat Thoyts
parent ef0e50e064
commit 99bae50ab1

View File

@@ -1039,7 +1039,7 @@ X-Mailer: git-send-email $gitversion
if ($dry_run) {
# We don't want to send the email.
} elsif ($smtp_server =~ m#^/#) {
} elsif ($smtp_server =~ m#^/# || $smtp_server =~ m#[a-zA-Z]\:#) {
my $pid = open my $sm, '|-';
defined $pid or die $!;
if (!$pid) {