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

Re: fetch <repo> <branch>:<branch> fetches tags?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 29, 2008, 02:47 UTC
Message-ID
<7v3ashs5yg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<479E9063.5000403@nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 16 quoted lines
> I expect these to fetch tags automatically (and they do):
>
>    git fetch
>    git pull
>    git fetch <repo>
>    git pull <repo>
>
> I expect these to _not_ fetch tags (and they don't):
>
>    git fetch <repo> <branch>
>    git pull <repo> <branch>
>
> But, I did not expect these to fetch tags:
>
>    git fetch <repo> <branch>:<branch>
>    git pull <repo> <branch>:<branch>
Sigh... that matches my expectation.

Did we break it when we overhauled "git fetch", or was this an independent "improvement" that happened long before that?

Previous: Brandon CaseyNext: Shawn O. Pearce
Message 4 of 9 in “fetch <repo> <branch>:<branch> fetches tags?”
  1. Brandon CaseyJan 29, 2008
  2. Johannes SchindelinJan 29, 2008
  3. Brandon CaseyJan 29, 2008
  4. Junio C HamanoJan 29, 2008
  5. Shawn O. PearceJan 29, 2008
  6. Junio C HamanoJan 29, 2008
  7. Brandon CaseyJan 29, 2008
  8. Junio C HamanoJan 29, 2008
  9. Brandon CaseyJan 29, 2008

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.