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

Re: Stalled git cloning and possible solutions

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 29, 2013, 21:10 UTC
Message-ID
<20130829211034.GB4110@google.com>
In-Reply-To
<201308300118.19166.vkrishn4@gmail.com>
V.Krishn wrote:
Show 5 quoted lines
> Quite sometimes when cloning a large repo stalls, hitting Ctrl+c cleans what 
> been downloaded, and process needs re-start.
>
> Is there a way to recover or continue from already downloaded files during 
> cloning ?

No, sadly. The pack sent for a clone is generated dynamically, so there's no easy way to support the equivalent of an HTTP Range request to resume. Someone might implement an appropriate protocol extension to tackle this (e.g., peff's seed-with-clone.bundle hack) some day, but for now it doesn't exist.

What you *can* do today is create a bundle from the large repo somewhere with a reliable connection and then grab that using a resumable transport such as HTTP. A kind person made a service to do that.

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

Hope that helps, Jonathan

Previous: V.KrishnNext: V.Krishn
Message 2 of 8 in “Stalled git cloning and possible solutions”
  1. V.KrishnAug 29, 2013
  2. Jonathan NiederAug 29, 2013
  3. V.KrishnAug 29, 2013
  4. Junio C HamanoAug 29, 2013
  5. V.KrishnAug 29, 2013
  6. V.KrishnSep 4, 2013
  7. Duy NguyenAug 30, 2013
  8. Duy NguyenAug 30, 2013

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.