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

Re: Git pull doesn't get the tags

From
RSRico Secada <coolzone@it.dk>
Date
Oct 22, 2010, 12:23 UTC
Message-ID
<20101022142308.f275aefe.coolzone@it.dk>
In-Reply-To
<4CC153A0.7080605@debugon.org>

On Fri, 22 Oct 2010 11:04:32 +0200 Mathias Lafeldt <misfire@debugon.org> wrote:

I managed to overlook the info from the man page, sorry.

But what does "but tags that do not point at objects reachable from the branch heads that are being tracked will not be fetched by this mechanism" mean?

When is an object not reachable from the branch head? In the repo only the master branch exist, and one repo is cloned from the other.

Show 35 quoted lines
> On 10/22/2010 05:37 AM, Rico Secada wrote:
> > Hi.
> > 
> > I am working on a repo on my desktop and I got a clone on my laptop.
> > I needed to pull the new stuff from my desktop unto my laptop, and I
> > noticed that tags doesn't get pulled.
> > 
> > The laptop access the desktop using NFS and I am using "git pull
> > NFS_SOURCE".
> > 
> > The repos are identical except that a few files has been updated
> > and a new tag has been added.
> > 
> > Why doesn't pull get the tag?
> > 
> > Best regards.
> 
> 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. [...]
> 
> -Mathias
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Mathias LafeldtNext: Junio C Hamano
Message 3 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.