git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Cogito: cg-push doesn't push tags?
Date: Thu, 29 Dec 2005 14:08:59 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0512291404240.3298@g5.osdl.org> (raw)
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

  reply	other threads:[~2005-12-29 22:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-29 21:59 Cogito: cg-push doesn't push tags? H. Peter Anvin
2005-12-29 22:08 ` Linus Torvalds [this message]
2005-12-29 22:10   ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0512291404240.3298@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=git@vger.kernel.org \
    --cc=hpa@zytor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).