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

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

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 29, 2005, 22:08 UTC
Message-ID
<Pine.LNX.4.64.0512291404240.3298@g5.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
Previous: H. Peter AnvinNext: Linus Torvalds
Message 2 of 3 in “Cogito: cg-push doesn't push tags?”
  1. H. Peter AnvinDec 29, 2005
  2. Linus TorvaldsDec 29, 2005
  3. Linus TorvaldsDec 29, 2005

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.