Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
send-email: windows drive prefix (e.g. C:) appears only at the beginning
author
Junio C Hamano
<gitster@pobox.com>
Wed, 23 Apr 2014 16:37:38 +0000
(09:37 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 23 Apr 2014 16:37:38 +0000
(09:37 -0700)
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>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cb005c1
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index 8f5f986e649c14468df3933e59c6f67b15fe55c5..abd62b484cdaef8e6ab5ba366551c03959c08beb 100755
(executable)
--- 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;