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

Re: git fetch with refspec does not include tags?

From
Jeff King <peff@peff.net>
Date
Aug 17, 2017, 14:22 UTC
Message-ID
<20170817142233.v2c534zh6wv7ttei@sigill.intra.peff.net>
In-Reply-To
<1502969387926.66865@arris.com>
On Thu, Aug 17, 2017 at 11:29:48AM +0000, Carlsson, Magnus wrote:
Show 6 quoted lines
> >  2. If we continue to follow the "are we storing any refs" rule for the
> >     default, possibly it should expand to "did we store anything,
> >     including opportunistic tracking-ref updates".
> 
> Personally I think that I would prefer to always fetch relevant tags.
> If I don't want tags I can simply use the "--no-tags"

I think it's a bit more complex because "git pull" uses "git fetch" under the hood. In fact, your "git fetch origin master" is exactly what gets run when you do:

  git pull origin master
That's maybe OK. But I think one-off pulls like:
  git pull https://example.com/repo.git master
probably wouldn't want it. I'd have to give it some thought.
-Peff
Previous: Carlsson, MagnusNext: Junio C Hamano
Message 4 of 12 in “git fetch with refspec does not include tags?”
  1. Carlsson, MagnusAug 17, 2017
  2. Jeff KingAug 17, 2017
  3. Carlsson, MagnusAug 17, 2017
  4. Jeff KingAug 17, 2017
  5. Junio C HamanoAug 17, 2017
  6. Junio C HamanoAug 17, 2017
  7. Kevin DaudtAug 17, 2017
  8. Junio C HamanoAug 17, 2017
  9. Kevin DaudtAug 17, 2017
  10. Jeff KingAug 20, 2017
  11. Jeff KingAug 20, 2017
  12. Junio C HamanoAug 20, 2017

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.