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

Re: git branch --track and remote branches with / in the name

From
Gerrit Pape <pape@smarden.org>
Date
Jun 5, 2007, 11:35 UTC
Message-ID
<20070605113557.5803.qmail@81f254b7954e14.315fe32.mid.smarden.org>
In-Reply-To
<7v4plmd7kg.fsf@assigned-by-dhcp.cox.net>
On Tue, Jun 05, 2007 at 03:22:39AM -0700, Junio C Hamano wrote:
> Gerrit Pape <pape@smarden.org> writes:
> > Hi, the --track option to git branch or git checkout doesn't work for
> > remote branches that contain a slash in the name:
> Indeed the "find matching remote tracking branch" code was
> somewhat sloppy and needlessly complex/clever.
> 
> How about this patch?
Works fine for me, including the selftest.  Thanks, Gerrit.
Previous: Junio C Hamano
Message 3 of 3 in “git branch --track and remote branches with / in the name”
  1. Gerrit PapeJun 5, 2007
  2. Junio C HamanoJun 5, 2007
  3. Gerrit PapeJun 5, 2007

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.