]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: recognize absolute path on Windows
authorErik Faye-Lund <kusmabite@googlemail.com>
Wed, 16 Apr 2014 08:08:18 +0000 (10:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2014 18:51:16 +0000 (11:51 -0700)
commitcb005c1fdf814d3b65b5b43f5f4fa25aa1bcdf46
treefaae99344aaf3b4cc5f24e865a22dd09c733e431
parent0bc85abb7aa9b24b093253018801a0fb43d01122
send-email: recognize absolute path on Windows

On Windows, absolute paths might start with a DOS drive prefix,
which these two checks failed to recognize.

Unfortunately, we cannot simply use the file_name_is_absolute
helper in File::Spec::Functions, because Git for Windows has an
MSYS-based Perl, where this helper doesn't grok DOS
drive-prefixes.

So let's manually check for these in that case, and fall back to
the File::Spec-helper on other platforms (e.g Win32 with native
Perl)

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl