Skip to content

Commit f24ecf5

Browse files
committed
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 <[email protected]>
1 parent cb005c1 commit f24ecf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ sub file_name_is_absolute {
11181118

11191119
# msys does not grok DOS drive-prefixes
11201120
if ($^O eq 'msys') {
1121-
return ($path =~ m#^/# || $path =~ m#[a-zA-Z]\:#)
1121+
return ($path =~ m#^/# || $path =~ m#^[a-zA-Z]\:#)
11221122
}
11231123

11241124
require File::Spec::Functions;

0 commit comments

Comments
 (0)