From 871e4c7ed153682a77de44e300b5f5461eb08538 Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Mon, 15 Dec 2025 20:08:59 +0000 Subject: [PATCH] sync: skip bloat check if fresh sync Initial syncs won't have accumulated any garbage. Bug: 379111283 Change-Id: I04b2ecde3e33f1f055038861a2705ab6aabb36d1 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/536083 Commit-Queue: Gavin Mak Reviewed-by: Mike Frysinger Tested-by: Gavin Mak --- subcmds/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index eb71ae92c..726e6d079 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -2110,7 +2110,8 @@ later is required to fix a server side protocol bug. "experience, sync the entire tree." ) - self._CheckForBloatedProjects(all_projects, opt) + if existing: + self._CheckForBloatedProjects(all_projects, opt) if not opt.quiet: print("repo sync has finished successfully.")