# Cogito: cg-push doesn't push tags?

3 messages from 2005-12-29 to 2005-12-29. Participants: H. Peter Anvin, Linus Torvalds.
Thread: https://gitlist.dev/t/2942

## H. Peter Anvin, 2005-12-29 21:59

Subject: Cogito: cg-push doesn't push tags?
Message-ID: <43B45C39.8040501@zytor.com>
URL: https://gitlist.dev/e/43B45C39.8040501%40zytor.com

```
It seems that cg-push in cogito 0.16.2 doesn't push new tags when used 
over git+ssh transport?  Am I completely wet behind the ears, or is that 
a bug?

In particular, it seems to manifest itself when the *only* thing that 
has changed is tags.

	-hpa

```

## Linus Torvalds, 2005-12-29 22:08

Subject: Re: Cogito: cg-push doesn't push tags?
Message-ID: <Pine.LNX.4.64.0512291404240.3298@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0512291404240.3298%40g5.osdl.org
In-Reply-To: <43B45C39.8040501@zytor.com>

```


On Thu, 29 Dec 2005, H. Peter Anvin wrote:
>
> It seems that cg-push in cogito 0.16.2 doesn't push new tags when used over
> git+ssh transport?  Am I completely wet behind the ears, or is that a bug?

List the tags you want pushed. 

The git transport (whether over ssh or locally) will default to updating 
only _shared_ references. So any heads that you have updated it will 
update by default. But if you want to create a new branch or tag on the 
other end, you need to list it explicitly (and once you do, it won't do 
the default ones at all).

Now, "git fetch" has a "--tags" argument that is shorthand for "all tags", 
and I think we should add that to "git send-pack" too just because it's 
both a common operation _and_ it mirrors "git fetch". But in the meantime 
you can hack around it with something like

	git send-pack <destination> $(cd .git/refs/ ; echo tags/*)


which is a silly way to list all tags ;)

		Linus

```

## Linus Torvalds, 2005-12-29 22:10

Subject: Re: Cogito: cg-push doesn't push tags?
Message-ID: <Pine.LNX.4.64.0512291409140.3298@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0512291409140.3298%40g5.osdl.org
In-Reply-To: <Pine.LNX.4.64.0512291404240.3298@g5.osdl.org>

```


On Thu, 29 Dec 2005, Linus Torvalds wrote:
>
> But in the meantime you can hack around it with something like
> 
> 	git send-pack <destination> $(cd .git/refs/ ; echo tags/*)
> 
> which is a silly way to list all tags ;)

Actually, I guess it should use "find tags/ -type f" or something like 
that instead of "echo tags/*". Otherwise you don't get tags with slashes 
right.

		Linus

```
