Skip to content

Commit f6a5af0

Browse files
j6tgitster
authored andcommitted
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>
1 parent cd5b33f commit f6a5af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9001-send-email.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ test_expect_success $PREREQ 'leading and trailing whitespaces are removed' '
20992099

21002100
test_expect_success $PREREQ 'test using command name with --sendmail-cmd' '
21012101
clean_fake_sendmail &&
2102-
PATH="$(pwd):$PATH" \
2102+
PATH="$PWD:$PATH" \
21032103
git send-email \
21042104
--from="Example <nobody@example.com>" \
21052105
--to=nobody@example.com \

0 commit comments

Comments
 (0)