]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9001: PATH must not use Windows-style paths
authorJohannes Sixt <j6t@kdbg.org>
Tue, 24 Aug 2021 18:01:29 +0000 (20:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Aug 2021 21:13:45 +0000 (14:13 -0700)
On Windows, $(pwd) returns a drive-letter style path C:/foo, while $PWD
contains a POSIX style /c/foo path. When we want to interpolate the
current directory in the PATH variable, we must not use the C:/foo style,
because the meaning of the colon is ambiguous. Use the POSIX style.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9001-send-email.sh

index 35289d9135eccac9735a4e678861fb8f2d27e980..993bef48dac7fe07e60f0e703964e485b782bf48 100755 (executable)
@@ -2099,7 +2099,7 @@ test_expect_success $PREREQ 'leading and trailing whitespaces are removed' '
 
 test_expect_success $PREREQ 'test using command name with --sendmail-cmd' '
        clean_fake_sendmail &&
-       PATH="$(pwd):$PATH" \
+       PATH="$PWD:$PATH" \
        git send-email \
                --from="Example <nobody@example.com>" \
                --to=nobody@example.com \