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

[PATCH] t9105-fetch-local: quote path created with pwd

From
Jonas Fonseca <fonseca@diku.dk>
Date
Nov 27, 2005, 20:05 UTC
Message-ID
<20051127200521.GA17293@diku.dk>
Small fix to let it work when pwd contains spaces.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
diff --git a/t/t9105-fetch-local.sh b/t/t9105-fetch-local.sh
index a309693..35e2778 100755
--- a/t/t9105-fetch-local.sh
+++ b/t/t9105-fetch-local.sh
@@ -35,7 +35,7 @@ test_expect_success 'symlinked clone of 
 rm -rf repo2
 mkdir repo2
 test_expect_success 'clone in-current-dir repo2 from $(pwd)/../repo1/../repo1.git/' \
-	'(cd repo2 && cg-clone -s $(pwd)/../repo1/../repo1.git/)'
+	'(cd repo2 && cg-clone -s "$(pwd)/../repo1/../repo1.git/")'
 
 echo file1v2 >repo1/file1
 test_expect_success 'commit in repo1' \
 
-- 
Jonas Fonseca
Message 1 of 1 in “t9105-fetch-local: quote path created with pwd”
  1. t9105-fetch-local: quote path created with pwdJonas Fonseca, Nov 27, 2005

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.