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

Re: Pushing a single tag (ref + object)?

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 19, 2005, 14:13 UTC
Message-ID
<Pine.LNX.4.64.0510190702360.3369@g5.osdl.org>
In-Reply-To
<46a038f90510182305j1fa2c4bh6d2b36c2fdd058ce@mail.gmail.com>
On Wed, 19 Oct 2005, Martin Langhoff wrote:
Show 6 quoted lines
> 
> Now, I am at a loss on how to push a _tag_ object+ref to the repo,
> without doing a git-push --all, which I naturally don't want to do. I
> managed to push the object itself, doing
> 
>     git-push repository tagrefname
This really should work. 
Can you try with
	git-send-pack repository tagname
first? 

If that works for you (it really really should, since that's what I do all the time), then the problem is in "get_remote_refs_for_push"..

Oh. Looking at "git-push.sh", I think it is just really really buggy.

It does all this magic to set "x", but then it never uses it, and uses "$@" instead after all. Which it has shifted all away.

How does that thing work at all? Me, I've always used the raw git-send-pack program, so I've never tested it, but obviously others are using it.

		Linus
Previous: Martin LanghoffNext: Junio C Hamano
Message 2 of 4 in “Pushing a single tag (ref + object)?”
  1. Martin LanghoffOct 19, 2005
  2. Linus TorvaldsOct 19, 2005
  3. Junio C HamanoOct 19, 2005
  4. Linus TorvaldsOct 19, 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.