# Tags not transferred with git pull?

6 messages from 2005-11-04 to 2005-11-07. Participants: Erik Mouw, Jan Harkes, Fernando J. Pereda, Junio C Hamano.
Thread: https://gitlist.dev/t/2347

## Erik Mouw, 2005-11-04 15:53

Subject: Tags not transferred with git pull?
Message-ID: <20051104155314.GB23790@harddisk-recovery.nl>
URL: https://gitlist.dev/e/20051104155314.GB23790%40harddisk-recovery.nl

```
Hi,

Is it OK that the latest git (0.99.9c) doesn't get the tags
(refs/tags/*) when doing a git pull? It's getting a bit of a nuisance
to do a separate rsync to get them right.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
| Data lost? Stay calm and contact Harddisk-recovery.com

```

## Jan Harkes, 2005-11-04 15:57

Subject: Re: Tags not transferred with git pull?
Message-ID: <20051104155706.GA2473@delft.aura.cs.cmu.edu>
URL: https://gitlist.dev/e/20051104155706.GA2473%40delft.aura.cs.cmu.edu
In-Reply-To: <20051104155314.GB23790@harddisk-recovery.nl>

```
On Fri, Nov 04, 2005 at 04:53:14PM +0100, Erik Mouw wrote:
> Is it OK that the latest git (0.99.9c) doesn't get the tags
> (refs/tags/*) when doing a git pull? It's getting a bit of a nuisance
> to do a separate rsync to get them right.

You don't need to fall back on rsync,

    git fetch --tags

Jan

```

## Fernando J. Pereda, 2005-11-04 15:59

Subject: Re: Tags not transferred with git pull?
Message-ID: <20051104155914.GA9567@ferdyx.org>
URL: https://gitlist.dev/e/20051104155914.GA9567%40ferdyx.org
In-Reply-To: <20051104155314.GB23790@harddisk-recovery.nl>

```
On Fri, Nov 04, 2005 at 04:53:14PM +0100, Erik Mouw wrote:
| Hi,
| 
| Is it OK that the latest git (0.99.9c) doesn't get the tags
| (refs/tags/*) when doing a git pull? It's getting a bit of a nuisance
| to do a separate rsync to get them right.
| 

As Linus explained in a message earlier, a git fetch --tags will do it.

Cheers,
Ferdy

-- 
Fernando J. Pereda Garcimart�n
Gentoo Developer (Alpha,net-mail,mutt,git)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4

```

## Erik Mouw, 2005-11-04 16:05

Subject: Re: Tags not transferred with git pull?
Message-ID: <20051104160503.GC23790@harddisk-recovery.com>
URL: https://gitlist.dev/e/20051104160503.GC23790%40harddisk-recovery.com
In-Reply-To: <20051104155914.GA9567@ferdyx.org>

```
On Fri, Nov 04, 2005 at 04:59:14PM +0100, Fernando J. Pereda wrote:
> On Fri, Nov 04, 2005 at 04:53:14PM +0100, Erik Mouw wrote:
> | Is it OK that the latest git (0.99.9c) doesn't get the tags
> | (refs/tags/*) when doing a git pull? It's getting a bit of a nuisance
> | to do a separate rsync to get them right.
> 
> As Linus explained in a message earlier, a git fetch --tags will do it.

Ah, right. I got the impression that the latest git was supposed to do
that automatically with a git pull.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

```

## Junio C Hamano, 2005-11-04 19:26

Subject: Re: Tags not transferred with git pull?
Message-ID: <7vll04tdsz.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vll04tdsz.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20051104160503.GC23790@harddisk-recovery.com>

```
Erik Mouw <erik@harddisk-recovery.com> writes:

> Ah, right. I got the impression that the latest git was supposed to do
> that automatically with a git pull.

Sorry for the confusion.  The barebone Porcelainish shipped with
git-core does not fetch and store tags unconditionally under the
same name as the remote has without being told; you need to
explicitly tell it to 'git fetch --tags'.

What was added recently was a low level support for Cogito to
implement the automatic tracking.  This is supposed to (I do not
offhand know if the Cogito side has been updated to do so
already) work a bit differently.  Instead of grabbing all tags
and all objects reachable from them, as you fetch commits from
the remote, the automatic tracking fetches tags that point at
them.  What this means is that the tags on the remote branch you
are tracking would be fetched automatically but tags on a remote
branch you are not interested in are not.

```

## Erik Mouw, 2005-11-07 10:44

Subject: Re: Tags not transferred with git pull?
Message-ID: <20051107104408.GA7283@harddisk-recovery.com>
URL: https://gitlist.dev/e/20051107104408.GA7283%40harddisk-recovery.com
In-Reply-To: <7vll04tdsz.fsf@assigned-by-dhcp.cox.net>

```
On Fri, Nov 04, 2005 at 11:26:20AM -0800, Junio C Hamano wrote:
> Sorry for the confusion.  The barebone Porcelainish shipped with
> git-core does not fetch and store tags unconditionally under the
> same name as the remote has without being told; you need to
> explicitly tell it to 'git fetch --tags'.
> 
> What was added recently was a low level support for Cogito to
> implement the automatic tracking.  This is supposed to (I do not
> offhand know if the Cogito side has been updated to do so
> already) work a bit differently.  Instead of grabbing all tags
> and all objects reachable from them, as you fetch commits from
> the remote, the automatic tracking fetches tags that point at
> them.  What this means is that the tags on the remote branch you
> are tracking would be fetched automatically but tags on a remote
> branch you are not interested in are not.

Thanks for the explanation.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

```
