@matheusbsbs / matheus-bagliano / commits / a8cbc9ab02
Fork 0

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>

Johannes Sixt committed Mar 12, 2009 at 20:32 UTC a8cbc9ab027dce3d99d0039a02ec9df0f0c7ebb1
1 file changed +2 -2
t/t5602-clone-remote-exec.sh
+2 -2
@@ -18,8 +18,8 @@ test_expect_success 'clone calls git upload-pack unqualified with no -u option'
18 '
19
20 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
23 test_cmp expected not_ssh_output
24 '
25