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

Re: "git clone --depth=2 git://git.sv.gnu.org/gnulib" hangs

From
Jeff King <peff@peff.net>
Date
Apr 26, 2011, 07:59 UTC
Message-ID
<20110426075917.GA26874@sigill.intra.peff.net>
In-Reply-To
<87aafedqjp.fsf@rho.meyering.net>
On Mon, Apr 25, 2011 at 10:28:10PM +0200, Jim Meyering wrote:
> We've had a report that this command is hanging:
> 
>     git clone --depth=2 git://git.sv.gnu.org/gnulib

It might be related to this deadlock which impacts upload-pack on a server with pthreads serving a shallow clone:

  http://thread.gmane.org/gmane.comp.version-control.git/170789

Unfortunately the fix I posted is not yet in any released version of git. It is in the current 'next'.

> It appears to be something specific to the gnulib repository,
> since I can do a shallow clone of e.g., this one just fine:
> 
>     git://git.savannah.gnu.org/parallel.git

It's a race condition on filling up a rev-list buffer, so certain repos may be more prone to triggering the race than others.

-Peff
Previous: Andreas SchwabNext: Jim Meyering
Message 3 of 4 in “"git clone --depth=2 git://git.sv.gnu.org/gnulib" hangs”
  1. Jim MeyeringApr 25, 2011
  2. Andreas SchwabApr 25, 2011
  3. Jeff KingApr 26, 2011
  4. Jim MeyeringApr 26, 2011

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.