Reset alternates when the git_cache dir is updated
When cache URL is updated, `gclient sync` appends the new cache path as an additional alternate object db instead of overriding the old alternate object db. This was done to support reusing cache while changing mirror path. However, when the cache is reset by LUCI, gclient appends the new mirror path instead of overwriting the existing one. This results in failed builds where `git fetch` looks for non-existent alternate object dbs. Bug: 1428312 Change-Id: Ib10e0b966ddef8793415cf8ef0eddbec13ba1a8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4379380 Reviewed-by: Joanna Wang <jojwang@chromium.org> Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>changes/80/4379380/4
parent
4a7343007c
commit
cf46585793
Loading…
Reference in New Issue