diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-04-23 09:37:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-23 09:37:38 -0700 |
commit | f24ecf5998a6c913ea6111dc0650c91165149264 (patch) | |
tree | eede9b5049ff582d3e395aee2ae4249f011b9896 /git-send-email.perl | |
parent | cb005c1fdf814d3b65b5b43f5f4fa25aa1bcdf46 (diff) | |
download | git-f24ecf5998a6c913ea6111dc0650c91165149264.tar.gz |
send-email: windows drive prefix (e.g. C:) appears only at the beginningef/send-email-absolute-path-to-the-command
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |