summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2021-08-24 18:01:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-24 21:13:45 (GMT)
commitf6a5af0f6218e82d18d79053ef49ea1c696cf167 (patch)
treecf2eb047c88de2727e71269216f4291a9465a100 /t/t9001-send-email.sh
parentcd5b33fbdc0299765278d0b607b64202603f0882 (diff)
downloadgit-f6a5af0f6218e82d18d79053ef49ea1c696cf167.zip
git-f6a5af0f6218e82d18d79053ef49ea1c696cf167.tar.gz
git-f6a5af0f6218e82d18d79053ef49ea1c696cf167.tar.bz2
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 <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 35289d9..993bef4 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 <nobody@example.com>" \
--to=nobody@example.com \