# [BUG} git-fetch - won't fetch wildcarded tags

3 messages from 2007-08-11 to 2007-08-11. Participants: Mark Levedahl, Junio C Hamano.
Thread: https://gitlist.dev/t/9480

## Mark Levedahl, 2007-08-11 02:59

Subject: [BUG} git-fetch - won't fetch wildcarded tags
Message-ID: <46BD25FC.1050201@verizon.net>
URL: https://gitlist.dev/e/46BD25FC.1050201%40verizon.net

```
git fetch does not seem to handle refs/tags/* refspecs, at least no from 
bundles...

git>git bundle create /tmp/foo v1.5.2
<snip>
git>git ls-remote /tmp/foo
8b1e5575ab18757272e86c5ec7a10411bbaa3662        refs/tags/v1.5.2
git>git tag -d v1.5.2
Deleted tag v1.5.2.
git>git fetch /tmp/foo 'refs/tags/*:refs/tags/*'
* refusing to create funny ref 'tags/*' locally


Huh?

but...
git>git fetch /tmp/foo 'refs/tags/v1.5.2:refs/tags/v1.5.2'
* refs/tags/v1.5.2: storing tag 'v1.5.2' of /tmp/foo
  tag: 8b1e557

What's going on? This is a severe limitation of the utility of bundles 
to transmit tagged versions.

Mark

```

## Mark Levedahl, 2007-08-11 03:25

Subject: Re: [BUG} git-fetch - won't fetch wildcarded tags
Message-ID: <46BD2C29.3040002@gmail.com>
URL: https://gitlist.dev/e/46BD2C29.3040002%40gmail.com
In-Reply-To: <46BD25FC.1050201@verizon.net>

```
Mark Levedahl wrote:
> git fetch does not seem to handle refs/tags/* refspecs, at least no 
> from bundles...
>
groan - Never mind
git fetch -t /tmp/foo

```

## Junio C Hamano, 2007-08-11 04:14

Subject: Re: [BUG} git-fetch - won't fetch wildcarded tags
Message-ID: <7vd4xur9m0.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vd4xur9m0.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <46BD25FC.1050201@verizon.net>

```
Mark Levedahl <mlevedahl@verizon.net> writes:

> git>git fetch /tmp/foo 'refs/tags/*:refs/tags/*'
> * refusing to create funny ref 'tags/*' locally

I think fetch's wildcard is effective only in the config file,
and this is not just tags.  It would be nice if you could say

	$ git fetch foo.bndl 'refs/*:refs/*'

```
