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

Re: [PATCH] git-clone: Sync documentation to usage note.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 15, 2007, 22:38 UTC
Message-ID
<20070215223802.GA27992@spearce.org>
In-Reply-To
<117157763494-git-send-email-schlotter@users.sourceforge.net>
Christian Schlotter <schlotter@users.sourceforge.net> wrote:
Show 13 quoted lines
> Please note that I was not able to test the new shallow clone feature, as
> both
>     git clone --depth=5 git://git2.kernel.org/pub/scm/git/git.git
> and
>     git clone --depth 5 git://git2.kernel.org/pub/scm/git/git.git
> do not seem to work.  The former correctly produces the usage note, while
> the latter prints
> 
>     Initialized empty Git repository in /home/cs/tmp2/git/.git/
>     fatal: read error (Connection reset by peer)
>     fetch-pack from 'git://git2.kernel.org/pub/scm/git/git.git' failed.
> 
> Is this a problem on my end?
Sort of.  ;-)

The server side must also support shallow clone. I don't think the server on kernel.org has been upgraded yet to a version which supports that feature, so you cannot shallow clone from there.

-- 
Shawn.
Previous: Christian Schlotter
Message 2 of 2 in “git-clone: Sync documentation to usage note.”
  1. git-clone: Sync documentation to usage note.Christian Schlotter, Feb 15, 2007
  2. Shawn O. PearceFeb 15, 2007

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.