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

Re: [BUG] shallow clones over http

From
Jeff King <peff@peff.net>
Date
Apr 13, 2013, 06:03 UTC
Message-ID
<20130413060310.GA21921@sigill.intra.peff.net>
In-Reply-To
<loom.20130410T144700-304@post.gmane.org>
On Wed, Apr 10, 2013 at 12:48:51PM +0000, Tom wrote:
Show 16 quoted lines
> The problem occurs to me also when I want to "deepen" a shallow clone of
> MediaWiki via https://
> 
>  git clone --depth 1 https://gerrit.wikimedia.org/r/p/mediawiki/core.git
>  git pull --depth=99999
> 
> fatal: git fetch-pack: expected shallow list.
> 
> Perhaps it helps someone to find the reason.
> 
> UPDATE:
> 
> This however works
> 
>  git clone --depth=2 https://gerrit.wikimedia.org/r/p/mediawiki/core.git
>  git fetch --depth=5

Yes, I experienced the same thing. I don't think the problem is related to the depth per se, but rather the particular pattern of ACKs that upload-pack sends based on which commits are being selected.

-Peff
Previous: TomNext: Junio C Hamano
Message 5 of 7 in “[BUG] shallow clones over http”
  1. Jeff KingApr 3, 2013
  2. TomApr 10, 2013
  3. Ramkumar RamachandraApr 10, 2013
  4. TomApr 10, 2013
  5. Jeff KingApr 13, 2013
  6. Junio C HamanoMay 8, 2013
  7. Duy NguyenFeb 6, 2014

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.