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

[PATCH] Adjust t5510 to put remotes in config

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 17, 2006, 14:46 UTC
Message-ID
<Pine.LNX.4.63.0612171545390.3635@wbgn013.biozentrum.uni-wuerzburg.de>

Since .git/remotes/ is no longer created by default, t5510 failed. While at it, convert the tests to use the config way of specifying remotes instead of creating a file in .git/remotes/.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 t/t5510-fetch.sh |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index a11ab0a..6229433 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -23,20 +23,16 @@ test_expect_success "clone and setup child repos" '
 	git clone . two &&
 	cd two &&
 	git repo-config branch.master.remote one &&
-	{
-		echo "URL: ../one/.git/"
-		echo "Pull: refs/heads/master:refs/heads/one"
-	} >.git/remotes/one
+	git repo-config remote.one.url ../one/.git/ &&
+	git repo-config remote.one.fetch refs/heads/master:refs/heads/one &&
 	cd .. &&
 	git clone . three &&
 	cd three &&
 	git repo-config branch.master.remote two &&
 	git repo-config branch.master.merge refs/heads/one &&
-	{
-		echo "URL: ../two/.git/"
-		echo "Pull: refs/heads/master:refs/heads/two"
-		echo "Pull: refs/heads/one:refs/heads/one"
-	} >.git/remotes/two
+	git repo-config remote.two.url ../two/.git/ &&
+	git repo-config remote.two.fetch refs/heads/master:refs/heads/two &&
+	git repo-config --add remote.two.fetch refs/heads/one:refs/heads/one
 '
 
 test_expect_success "fetch test" '
-- 
1.4.4.2.ga4be2-dirty
Next: Johannes Schindelin
Message 1 of 8 in “Adjust t5510 to put remotes in config”
  1. Adjust t5510 to put remotes in configJohannes Schindelin, Dec 17, 2006
  2. Johannes SchindelinDec 18, 2006
  3. Junio C HamanoDec 18, 2006
  4. Johannes SchindelinDec 18, 2006
  5. Johannes SchindelinDec 18, 2006
  6. Junio C HamanoDec 18, 2006
  7. Junio C HamanoDec 18, 2006
  8. Johannes SchindelinDec 19, 2006

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.