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

Re: Stalled git cloning and possible solutions

From
VV.Krishn <vkrishn4@gmail.com>
Date
Aug 29, 2013, 21:35 UTC
Message-ID
<201308300305.10440.vkrishn4@gmail.com>
In-Reply-To
<20130829211034.GB4110@google.com>
On Friday, August 30, 2013 02:40:34 AM you wrote:
Show 12 quoted lines
> V.Krishn wrote:
> > 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.
This is what I tried but then realized something more is needed:
During stalled clone avoid  Ctrl+c. 
1. Copy the content .i.e .git folder some other place.
2. cd <new dir>
3. git config fetch.unpackLimit 999999
4. git config transfer.unpackLimit 999999
5. cat .git/config #to see if config went ok
 
6. recover process:
 git unpack-objects -r --strict <.git/objects/pack/tmp_pack_0mSPsc
THEN... hopefully thought following should do the trick
 git pull
 OR
 git-fetch-pack
 OR
 git repack + git pull

but then something more is needed.... :) like index/map file... etc for it work.

Show 7 quoted lines
> 
> 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
Service looks nice. Hope its gets sponsors to keep it running.
-- 
Regards.
V.Krishn
Previous: Jonathan NiederNext: Junio C Hamano
Message 3 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.