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

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

From
Jim Meyering <jim@meyering.net>
Date
Apr 25, 2011, 20:28 UTC
Message-ID
<87aafedqjp.fsf@rho.meyering.net>
Hello,
We've had a report that this command is hanging:
    git clone --depth=2 git://git.sv.gnu.org/gnulib

cloning without --depth=N works, as well as when using an ssh:// URL, but most people can use ssh:// URLs.

Normally it wouldn't be much of a problem, but many projects use gnulib as a submodule, and one of the recommended (scripted) ways to get a copy is via a shallow clone.

savannah's server is running git-1.7.2.5. I've confirmed it using these client versions:

    1.7.5.rc3.316.gd1ff9
    1.7.4.4
GIT_TRACE didn't give much info:
    xx$ GIT_TRACE=1 git clone --depth 2 git://git.sv.gnu.org/gnulib
    trace: built-in: git 'clone' '--depth' '2' 'git://git.sv.gnu.org/gnulib'
    Cloning into gnulib...
    trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' \
      '--keep=fetch-pack 645 on xx.meyering.net'
    trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' \
      '--keep=fetch-pack 645 on xx.meyering.net'
    trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' \
      '--keep=fetch-pack 645 on xx.meyering.net'

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
Any hints?

At worst I'll set up a git server on a private system and debug it -- eventually.

Regards,
Jim
Next: Andreas Schwab
Message 1 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.