git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix t5516 on cygwin: it does not like double slashes at the beginning of a path

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 3, 2008, 22:16 UTC
Message-ID
<20080603221626.GA8081@steel.home>

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>
---
 t/t5516-fetch-push.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index c5c5933..6805032 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -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 &&
-- 
1.5.6.rc0.112.g62868
Message 1 of 1 in “Fix t5516 on cygwin: it does not like double slashes at the beginning of a path”
  1. Fix t5516 on cygwin: it does not like double slashes at the beginning of a pathAlex Riesen, Jun 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.