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

Re: [PATCH] Ability to automaticaly push tags to remote repositories.

From
Petr Baudis <pasky@ucw.cz>
Date
Jun 2, 2006, 20:58 UTC
Message-ID
<20060602205836.GG10488@pasky.or.cz>
In-Reply-To
<442BD562.3030207@people.pl>

Dear diary, on Thu, Mar 30, 2006 at 02:56:02PM CEST, I got a letter where Krzysiek Pawlik <krzysiek.pawlik@people.pl> said that...

Show 14 quoted lines
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> - From `cg-push --long-help`:
> 
> - -t TAG::
>         Tells cg-push to also push the given tag. Note that in the
>         future, cg-push should push tags automatically. Also note
>         that even if you pass `cg-push` the '-t' arguments, your
>         HEAD is still pushed as well in addition to the tags.
> 
> One of possible ways of doing it is in attached patch. Comments,
> suggestions?

Well, this works properly only when you ever push to a single repository, which many people don't. Besides, if you have two branches, push branch A but tag a commit only on branch B, you will now be pushing an invalid tag since the other end won't have the branch B and thus the tagged commit.

A better way would be to use git-ls-remote --tags to get the list of remote tags and compare that with the list of local tags, then push those tags that tag commits on the branch we are pushing and the other end does not have them.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
A person is just about as big as the things that make them angry.
Previous: Krzysiek Pawlik
Message 3 of 3 in “Ability to automaticaly push tags to remote repositories.”
  1. Ability to automaticaly push tags to remote repositories.Krzysiek Pawlik, Mar 30, 2006
  2. Krzysiek PawlikMar 30, 2006
  3. Petr BaudisJun 2, 2006

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.