{"thread":{"id":"13787","subject":"[PATCH] Fix t5516 on cygwin: it does not like double slashes at the beginning of a path","startedAt":"2008-06-03T22:16:26Z","lastAt":"2008-06-03T22:16:26Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"78559","messageId":"20080603221626.GA8081@steel.home","threadId":"13787","inReplyTo":null,"subject":"[PATCH] Fix t5516 on cygwin: it does not like double slashes at the beginning of a path","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-06-03T22:16:26Z","receivedAt":"2008-06-03T22:16:26Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"The double slashes \"//\" result from url./$TRASH/. expansion and the\ncurrent directory, which even in cygwin contains \"/\" as first\ncharacter. In cygwin such strings have special meaning: UNC path.\nAccessing an UNC path built for test purpose usually fails.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n t/t5516-fetch-push.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh\nindex c5c5933..6805032 100755\n--- a/t/t5516-fetch-push.sh\n+++ b/t/t5516-fetch-push.sh\n@@ -146,7 +146,7 @@ test_expect_success 'push with wildcard' '\n test_expect_success 'push with insteadOf' '\n \tmk_empty &&\n \tTRASH=\"$(pwd)/\" &&\n-\tgit config \"url./$TRASH/.insteadOf\" trash/ &&\n+\tgit config \"url.$TRASH.insteadOf\" trash/ &&\n \tgit push trash/testrepo refs/heads/master:refs/remotes/origin/master &&\n \t(\n \t\tcd testrepo &&\n-- \n1.5.6.rc0.112.g62868\n"}]}