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

[PATCH] clone: don't clone the info/alternates file

From
Martin Waitz <tali@admingilde.org>
Date
May 7, 2006, 18:19 UTC
Message-ID
<20060507181933.GD23738@admingilde.org>

Now that the cloned alternates file is parsed, too we don't need to copy it into our new repository, we just reference it.

Signed-off-by: Martin Waitz <tali@admingilde.org>
---
 git-clone.sh |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
4dc26b7a15c0778459f2ccf85aad1c03d1b3a3cc
diff --git a/git-clone.sh b/git-clone.sh
index b785247..227245c 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -261,11 +261,7 @@ yes,yes)
 	    ;;
 	yes)
 	    mkdir -p "$GIT_DIR/objects/info"
-	    {
-		test -f "$repo/objects/info/alternates" &&
-		cat "$repo/objects/info/alternates";
-		echo "$repo/objects"
-	    } >>"$GIT_DIR/objects/info/alternates"
+	    echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates"
 	    ;;
 	esac
 	git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"
-- 
1.3.1.g6ef7
Message 1 of 1 in “clone: don't clone the info/alternates file”
  1. clone: don't clone the info/alternates fileMartin Waitz, May 7, 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.