Thread (1 message) 1 message, 1 author, 2020-09-14
  • (off-list ancestor, not in this archive)
  • Re: Caching Git Pull · Son Luong Ngoc <hidden> · 2020-09-14

Re: Caching Git Pull

From: Son Luong Ngoc <hidden>
Date: 2020-09-14 08:39:09

Note: resend with plain-text format

Hi Benson,
On Sep 14, 2020, at 07:27, Benson Muite [off-list ref] wrote:

Hi,

Is there some way I can add functionality for caching git pull to allow continuation of a partially complete pull from a git repository to a local machine. 
I believe there has been some recent works toward this direction with Packfile Uri feature [1] [2] where a packfile could be uploaded to
CDN and then advertised by the hosting remote so that clients who enabled the feature can download the big part of the clone
via CDN instead.

[1]: https://github.com/git/git/blob/master/Documentation/technical/packfile-uri.txt
[2]: https://public-inbox.org/git/cover.1591821067.git.jonathantanmy@google.com/

However I don't think any major Git hosting provider (Github, Bitbucket, Gitlab etc...) have started using this feature.
As an example the command wget -c allows continuation of a partially complete download. This would be very helpful for large commits which fail with:

fatal: the remote end hung up unexpectedly
fatal: early EOF

Regards,
Benson
I will cc Jonathan Tan(author) to discuss more regarding path toward resumable git clone.

Cheers,
Son Luong.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help