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