summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-04-23 09:37:38 -0700
committerJunio C Hamano <gitster@pobox.com>2014-04-23 09:37:38 -0700
commitf24ecf5998a6c913ea6111dc0650c91165149264 (patch)
treeeede9b5049ff582d3e395aee2ae4249f011b9896
parentcb005c1fdf814d3b65b5b43f5f4fa25aa1bcdf46 (diff)
downloadgit-ef/send-email-absolute-path-to-the-command.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>
-rwxr-xr-xgit-send-email.perl2
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;