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

Re: Git pull doesn't get the tags

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 22, 2010, 21:33 UTC
Message-ID
<7vhbgdlxof.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4CC153A0.7080605@debugon.org>
Mathias Lafeldt <misfire@debugon.org> writes:
Show 12 quoted lines
> Try git pull --tags.
>
> From git-pull's manpage:
>
> -t
> --tags
>         Most of the tags are fetched automatically as branch
>         heads are downloaded, but tags that do not point at
>         objects reachable from the branch heads that are being
>         tracked will not be fetched by this mechanism.  This
>         flag lets all tags and their associated objects be
>         downloaded. [...]

Can somebody submit a patch to stop this part of "fetch-options.txt" from getting included in "git pull" manpage please, by the way?

This is one of the options that are passed to the underlying "git fetch" without sanitizing by "git pull". "Fetch all tags and merge them" does not make any sense as a request at the logical level, even though it might be more convenient to type.

I do not recall offhand if we made sure the stuff fetched with --tags request are marked as not-for-merge, and if we didn't that is certainly a bug.

Previous: Rico SecadaNext: Jens Lehmann
Message 6 of 7 in “Git pull doesn't get the tags”
  1. Rico SecadaOct 22, 2010
  2. Mathias LafeldtOct 22, 2010
  3. Rico SecadaOct 22, 2010
  4. Junio C HamanoOct 22, 2010
  5. Rico SecadaOct 23, 2010
  6. Junio C HamanoOct 22, 2010
  7. pull: Remove --tags option from manpageJens Lehmann, Nov 3, 2010

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.