mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-26 06:32:19 +00:00
Add `repo init --smart-sync-branch=BRANCH` to persist a server-side Smart Sync branch override in `repo.<manifest-branch>.smartsyncbranch` inside .repo/manifests.git/config (with an empty string clearing it). During Smart Sync, non-empty SYNC_BRANCH still takes top precedence, while SYNC_BRANCH="" forces the raw manifest branch over checkout config. Bug: 543101585 Bug: 585378823 Change-Id: I933a48d03ed5ebd83aa5aba9ddde761dfac23243 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/655063 Reviewed-by: Brian Gan <brgan@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>