From: Junio C Hamano Date: Wed, 23 Apr 2014 16:37:38 +0000 (-0700) Subject: send-email: windows drive prefix (e.g. C:) appears only at the beginning X-Git-Tag: v2.1.0-rc0~190^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f24ecf5998a6c913ea6111dc0650c91165149264;p=thirdparty%2Fgit.git send-email: windows drive prefix (e.g. C:) appears only at the beginning Tighten the regexp used in the "file_name_is_absolute" replacement used on msys to declare that only "[a-zA-Z]:" that appear at the very beginning is a path with a drive-prefix. Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 8f5f986e64..abd62b484c 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -1118,7 +1118,7 @@ sub file_name_is_absolute { # msys does not grok DOS drive-prefixes if ($^O eq 'msys') { - return ($path =~ m#^/# || $path =~ m#[a-zA-Z]\:#) + return ($path =~ m#^/# || $path =~ m#^[a-zA-Z]\:#) } require File::Spec::Functions;