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

Re: fetch --no-tags with and w/o --all

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 6, 2013, 21:56 UTC
Message-ID
<7vboawp4zy.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1879950.i2j8pjGADy@gandalf>
Cristian Tibirna <ctibirna@giref.ulaval.ca> writes:
Show 12 quoted lines
> Hello
>
> $ git --version
> git version 1.7.10.4
>
> $ git fetch origin --no-tags
> does what it says
>
> $ git fetch --all --no-tags
> still gets all the tags from the remote.
>
> Is this known?

Because --all (or --multiple) to iterate through all remotes does not pass accept any command line refspecs, using these options with --no-tags and/or --tags should be diagnosed as an error, but it appears that the error checking is not done.

Previous: Cristian TibirnaNext: Jeff King
Message 2 of 5 in “fetch --no-tags with and w/o --all”
  1. Cristian TibirnaMar 6, 2013
  2. Junio C HamanoMar 6, 2013
  3. Jeff KingMar 7, 2013
  4. Junio C HamanoMar 7, 2013
  5. Jeff KingMar 7, 2013

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.