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

Re: git remote set-head not working?

From
Jay Soffian <jaysoffian@gmail.com>
Date
Dec 18, 2009, 22:24 UTC
Message-ID
<76718490912181424l3815ce95o6dcde77ea00cbd11@mail.gmail.com>
In-Reply-To
<7veimst0w6.fsf@alter.siamese.dyndns.org>
On Fri, Dec 18, 2009 at 4:42 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Jay Soffian <jaysoffian@gmail.com> writes:
>
>> The remote command is about updating things under .git/refs/remotes,
>> not about updating a remote server. For updating a remote server,
>> there is really only push. Clear as mud?
>
> We still support (and unfortunately we would probably end up supporting
> for a long time) "remote update" so it is not strictly true, but that is
> the original motivation behind "git remote" subcommand.

But "remote update" updates the local repo from the remote, it doesn't do anything to the remote itself. That is the point I was trying to make clear -- "git remote" doesn't ever do anything to the remote repo, it only updates things on the local repo.

Show 5 quoted lines
>> Understood. I'm not sure whether the send-pack/receive-pack protocol
>> supports the notion of "I want to change what HEAD points to."
>
> It does not support it, but that is not because there is a strong reason
> it shouldn't.

Okay. I'm sure deciding where to place the command "I want to update what HEAD on remote points to" would be a fun discussion. :-)

j.
Previous: Junio C HamanoNext: Eugene Sajine
Message 6 of 7 in “git remote set-head not working?”
  1. Eugene SajineDec 18, 2009
  2. Jeff KingDec 18, 2009
  3. Eugene SajineDec 18, 2009
  4. Jay SoffianDec 18, 2009
  5. Junio C HamanoDec 18, 2009
  6. Jay SoffianDec 18, 2009
  7. Eugene SajineDec 18, 2009

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.