summaryrefslogtreecommitdiff
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2026-05-12 20:21:10 +0000
committergerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2026-05-14 13:19:26 -0700
commitd453273f0638f7090846a9f95e3cae578569a6c7 (patch)
tree80d0d994901c7023b60efaa42dcd1c978917d309 /subcmds/sync.py
parent0129ac1c460381ea42e907901c256561d1d8f353 (diff)
downloadgit-repo-d453273f0638f7090846a9f95e3cae578569a6c7.tar.gz
git-repo-d453273f0638f7090846a9f95e3cae578569a6c7.zip
command: Move smart sync override logic to Command base class
Deduplicate the logic for loading `smart_sync_override.xml` by moving it from `forall.py` to the `Command` base class. This allows other commands to reuse it to respect smart tags. Bug: 279204331 Change-Id: I6f2f03995266c2a68c3225cacb92b2f580a89178 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/582502 Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 291bc6243..8c2591180 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -2050,9 +2050,7 @@ later is required to fix a server side protocol bug.
manifest.Override(opt.manifest_name)
manifest_name = opt.manifest_name
- smart_sync_manifest_path = os.path.join(
- manifest.manifestProject.worktree, "smart_sync_override.xml"
- )
+ smart_sync_manifest_path = self.GetSmartSyncOverridePath(manifest)
if opt.clone_bundle is None:
opt.clone_bundle = manifest.CloneBundle