collective / mrs-developer

NodeJS utility to checkout Git repositories as NPM dependencies
7 stars 3 forks source link

Do a partial clone without blobs #41

Closed davisagli closed 21 hours ago

davisagli commented 23 hours ago

@sneridagh I'm not sure how to test this, but it should make a clone fetch less data until it is actually checked out. See https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/ for more info.

sneridagh commented 22 hours ago

@davisagli I made some tests: shallow: 66MB partial: 84MB

all go "quick". I will amend my PR to use your approach. We have tests and the option to opt-in to the feature.

davisagli commented 21 hours ago

Closing in favor of #42