Skip to content

Commit

Permalink
send-email: windows drive prefix (e.g. C:) appears only at the beginning
Browse files Browse the repository at this point in the history
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 <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Apr 23, 2014
1 parent cb005c1 commit f24ecf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f24ecf5

Please sign in to comment.