Hartmut Goebel <[email protected]> skribis: > Am 04.09.2017 um 23:56 schrieb Ludovic Courtès: >> What it does do is maintain a cached checkout in ~/.cache/guix/pull, >> which makes subsequent pulls much faster. > > Summary ( TL;DR): > > * "guix pull" should use "git fetch master" > * "guix download" we can keep the current behaviour > > I did a series of tests > > * - "fetch" without any argument will fetch *all* data from *all* > branches. > * - "fetch master" only fetches data living on "master", other > branches are ignored > > I compared the data fetched for a repo with status of 6bd1c41e8 > (yesterday 05:29): > > * - "fetch" fetches 1000K > * - "fetch master" fetches 755K > * - "fetch --depth=1 master" fetches 588K (but see below)
Thanks for the detailed analysis! The problem is that libgit2 doesn’t support shallow clones, and it’s unclear whether it will support it in the future: https://github.com/libgit2/libgit2/issues/3058 :-/ Ludo’.
