Skip to content

Commit a8cbc9a

Browse files
committed
t5602: Work around path mangling on MSYS
MSYS's bash rewrites /something/bin/... into a Windows path that looks like c:/msysgit/something/bin/... before git sees it. But later the test case verifies that the path was used and compares it to the unmangled version. This fails, of course. This make the path relative so that the path mangling is not triggered. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
1 parent b689ccf commit a8cbc9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5602-clone-remote-exec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test_expect_success 'clone calls git upload-pack unqualified with no -u option'
1818
'
1919

2020
test_expect_success 'clone calls specified git upload-pack with -u option' '
21-
GIT_SSH=./not_ssh git clone -u /something/bin/git-upload-pack localhost:/path/to/repo junk
22-
echo "localhost /something/bin/git-upload-pack '\''/path/to/repo'\''" >expected
21+
GIT_SSH=./not_ssh git clone -u ./something/bin/git-upload-pack localhost:/path/to/repo junk
22+
echo "localhost ./something/bin/git-upload-pack '\''/path/to/repo'\''" >expected
2323
test_cmp expected not_ssh_output
2424
'
2525

0 commit comments

Comments
 (0)