From f6a5af0f6218e82d18d79053ef49ea1c696cf167 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 24 Aug 2021 20:01:29 +0200 Subject: t9001: PATH must not use Windows-style paths 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 Signed-off-by: Junio C Hamano --- t/t9001-send-email.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 35289d9135..993bef48da 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -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 " \ --to=nobody@example.com \ -- cgit v1.2.3