]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Fix t5516 on cygwin: it does not like double slashes at the beginning of a path
authorAlex Riesen <raa.lkml@gmail.com>
Tue, 3 Jun 2008 22:16:26 +0000 (00:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Jun 2008 05:12:08 +0000 (22:12 -0700)
The double slashes "//" result from url./$TRASH/. expansion and the
current directory, which even in cygwin contains "/" as first
character. In cygwin such strings have special meaning: UNC path.
Accessing an UNC path built for test purpose usually fails.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh

index c5c59335f36d0d8f6a26ee606fd605e74e2d1e33..6805032a05cba00536f8d0621873741773a49f92 100755 (executable)
@@ -146,7 +146,7 @@ test_expect_success 'push with wildcard' '
 test_expect_success 'push with insteadOf' '
        mk_empty &&
        TRASH="$(pwd)/" &&
-       git config "url./$TRASH/.insteadOf" trash/ &&
+       git config "url.$TRASH.insteadOf" trash/ &&
        git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
        (
                cd testrepo &&