threads / discuss / 54235

Caching Git Pull

Subject: Caching Git Pull

## tl;dr

2 messages between Sep 14, 2020 and Sep 14, 2020.

replies: 1people: 2as markdown or json

Benson Muite· Sep 14, 2020, 05:27 UTC · lore
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. 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

Son Luong Ngoc· Sep 14, 2020, 08:39 UTC · lore

Re: Caching Git Pull

Note: resend with plain-text format
Hi Benson,
Show 5 quoted lines
> On Sep 14, 2020, at 07:27, Benson Muite <benson_muite@emailplus.org> 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.
Show 7 quoted lines
> 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.

← back to recent threads