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 <redacted>
# 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;