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: https://git.lorimer.id.au/gitweb.git/diff_plain/f24ecf5998a6c913ea6111dc0650c91165149264?ds=inline;hp=--cc 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 --- f24ecf5998a6c913ea6111dc0650c91165149264 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;