CocoaPods / cocoapods-downloader

A small library that provides downloaders for various source types (HTTP/SVN/Git/Mercurial)
MIT License
84 stars 71 forks source link

Fix bug of git shallow cloning and better performance when cloning #122

Open xuzhongping opened 2 years ago

xuzhongping commented 2 years ago

Issue: #106

description

It should be noted that this will break the caching mechanism (for the old downloaded cache) when using branch when git downloads in the external pod in cocoapods, because I will keep the parameter ‘branch’ after preprocessing options.

If this modification is approved, I would like to go to the cocoapods gem to optimize git's caching strategy.

other

FKREISE commented 9 months ago

Can we please get this merged? Currently, for every pod update we have to download over 500 MB of data because our default branch during development is not master.

With this fix we only have to download 15 MB and it's over 30 times faster! cc @dnkoutso