diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-16 00:26:46 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-16 13:29:59 +0100 |
commit | d83dd506c2b8a5846e2f6a07cbd93ef6ba37ded9 (patch) | |
tree | 66ec3e400336288d9c58e957ddb861439bf4adb4 /config/grub/xhci_nvme/patches/0022-xhci-fix-port-indexing.patch | |
parent | 18c63682e7a1e7b90ade549d5c84a3c3e4dcdccd (diff) |
get.sh: More reliable git remote caching
Don't do one repository for all remotes. Do one *clone* per
remote.
This also means that users no longer download information twice,
in practice, because the backup repository will only be downloaded
if the main one didn't work.
Theoretically, this change is makes the process less efficient, but
in practise it's more reliable now.
We do now use --mirror on the git clone command for caches, but we
already did git pull --all before.
This just ensures that we absolutely have all local code.
NOTE:
The new code isn't used by default. To use it, you must do:
export XBMK_CACHE_MIRROR="y"
Otherwise, the old behaviour will continue to be used. This is
because the new code, while correct, puts more strain on upstream
servers (more code being downloaded), and can result in higher amounts
of disk space being used. The old behaviour wasn't broken, so we'll
also support that method.
TODO: perhaps also have a check in place to re-use both caches,
where available, regardless of XBMK_CACHE_MIRROR?
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/grub/xhci_nvme/patches/0022-xhci-fix-port-indexing.patch')
0 files changed, 0 insertions, 0 deletions