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

Re: Problem upgrading to 1.4.0

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 13, 2006, 03:28 UTC
Message-ID
<Pine.LNX.4.64.0606122024400.5498@g5.osdl.org>
In-Reply-To
<1150167759.4297.95.camel@dv>
On Mon, 12 Jun 2006, Pavel Roskin wrote:
Show 7 quoted lines
>
> > You can get a list of the remote branches whenever you want:
> > 
> > $ git ls-remote -h <remote>
> 
> I heard of that command.  But git-clone only uses it for local and rsync
> protocols.

The native format doesn't _need_ to use "git ls-remote", because the native format does it on its own.

In fact, "git ls-remote" actually uses the pack transfer protocol to figure out what the remote heads are (it just then doesn't _ask_ for anything), so in many ways you can see "git ls-remote" as being just a helper around the basic clone/pull protocol.

So "git clone" ends up doing the equivalent of a git ls-remote to populate the initial local heads and tags. It's just that for the native protocol, it all happens together in one burst.

		Linus
Previous: Pavel RoskinNext: Pavel Roskin
Message 6 of 8 in “Problem upgrading to 1.4.0”
  1. Geoff RussellJun 11, 2006
  2. Junio C HamanoJun 11, 2006
  3. Pavel RoskinJun 13, 2006
  4. SeanJun 13, 2006
  5. Pavel RoskinJun 13, 2006
  6. Linus TorvaldsJun 13, 2006
  7. Pavel RoskinJun 13, 2006
  8. Geoff RussellJun 13, 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.