mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-26 06:32:19 +00:00
Store --manifest-depth in repo.manifestdepth so subsequent repo sync and repo init runs preserve shallow manifest checkouts instead of unshallowing .repo/manifests, while --manifest-depth=0 restores a full manifest clone. Also exclude pre-fetch shallow upstream commits when updating shallow tracking branches so advancing a shallow manifest branch resets cleanly without bogus discard notices or failed shallow-root rebases. Bug: 543101585 Change-Id: I59d056e9d12a3ded8c55a3f55b7de3447e2bf788 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/653243 Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Brian Gan <brgan@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>