Git pull doesn't get the tags

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Git pull doesn't get the tags

From: Rico Secada <hidden>
Date: 2016-06-15 22:49:50

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.

Re: Git pull doesn't get the tags

From: Mathias Lafeldt <hidden>
Date: 2016-06-15 22:49:50

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

Re: Git pull doesn't get the tags

From: Rico Secada <hidden>
Date: 2016-06-15 22:49:51

On Fri, 22 Oct 2010 11:04:32 +0200
Mathias Lafeldt [off-list ref] 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.
On 10/22/2010 05:37 AM, Rico Secada wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help