mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 16:16:16 +02:00
a8fe0dc16c
Previously we would completely refetch the submodules from the network, even though the repo might already have them. Now we copy the .git/modules directory from the repo as an optimisation. This speeds up evaluating builtins.fetchTree { type = "git"; url = "/path/to/blender"; submodules = true; } (where /path/to/blender already has the needed submodules) from 121s to 57s. This is still pretty inefficient and a hack, but a better solution is best done on the lazy-trees branch. This change also help in the case where the repo already has the submodules but the origin is unfetchable for whatever reason (e.g. there have been cases where Nix in a GitHub action doesn't have the right authentication set up). |
||
---|---|---|
.. | ||
attrs.cc | ||
attrs.hh | ||
cache.cc | ||
cache.hh | ||
fetch-settings.cc | ||
fetch-settings.hh | ||
fetchers.cc | ||
fetchers.hh | ||
git.cc | ||
github.cc | ||
indirect.cc | ||
local.mk | ||
mercurial.cc | ||
path.cc | ||
registry.cc | ||
registry.hh | ||
tarball.cc |