Files
git-repo/docs
Gavin Mak 344ec87370 init, sync: persist --manifest-depth across syncs
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>
2026-11-17 15:14:55 -08:00
..
2026-05-14 09:03:56 -07:00