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

[PATCH] clone: add refs/remotes/* to Pull: targets when cloning

From
EWEric Wong <normalperson@yhbt.net>
Date
Mar 9, 2006, 11:55 UTC
Message-ID
<20060309115535.GB13369@localdomain>
In-Reply-To
<20060309115452.GA13369@localdomain>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 git-clone.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
be2db2344099b3713c1136e84bab7390b6198895
diff --git a/git-clone.sh b/git-clone.sh
index 4ed861d..a8ab7fd 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -249,6 +249,12 @@ Pull: $head_points_at:$origin" &&
 			test "$origin" = "$head" ||
 			echo "Pull: ${head}:${head}"
 		done >>"$GIT_DIR/remotes/origin"
+		(test -d "$GIT_DIR"/refs/remotes && cd "$GIT_DIR" &&
+		 find "refs/remotes" -type f -print | sed -e 's|^refs/||') |
+		while read ref
+		do
+			echo "Pull: $ref:$ref"
+		done >>"$GIT_DIR/remotes/origin"
 	esac
 
 	case "$no_checkout" in
-- 
1.2.4.ga2910
Previous: Eric WongNext: Junio C Hamano
Message 2 of 5 in “fetch/parse-remote: refs/remotes/* support”
  1. fetch/parse-remote: refs/remotes/* supportEric Wong, Mar 9, 2006
  2. clone: add refs/remotes/* to Pull: targets when cloningEric Wong, Mar 9, 2006
  3. Junio C HamanoMar 9, 2006
  4. Junio C HamanoMar 9, 2006
  5. fetch,parse-remote,fmt-merge-msg: refs/remotes/* supportEric Wong, Mar 10, 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.