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

Re: [RFC/PATCH] git-fetch: Use already fetched branch with the --local flag.

From
SBSanti Béjar <sbejar@gmail.com>
Date
Oct 17, 2006, 14:03 UTC
Message-ID
<873b9n9gzx.fsf@gmail.com>
In-Reply-To
<87ac3w8jl1.fsf@gmail.com>
Please, add this:
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 617d022..a792323 100755
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
@@ -260,7 +260,7 @@ get_ref_for_remote_branch (){
 	remotes)
 		ref=$(sed -ne '/^Pull: */{
 				s///p
-			}' "$GIT_DIR/remotes/$1" | grep "$2:")
+			}' "$GIT_DIR/remotes/$1" | grep "^$2:")
 		expr "z$ref" : 'z[^:]*:\(.*\)'
 		;;
 	*)
Previous: Santi Béjar
Message 4 of 4 in “git-fetch: Use already fetched branch with the --local flag.”
  1. git-fetch: Use already fetched branch with the --local flag.Santi Béjar, Oct 16, 2006
  2. Junio C HamanoOct 17, 2006
  3. Santi BéjarOct 17, 2006
  4. Santi BéjarOct 17, 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.