summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2025-12-15 20:08:59 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2025-12-15 15:24:45 -0800
commit871e4c7ed153682a77de44e300b5f5461eb08538 (patch)
tree3778f45ee0ead741a27a2f4cfd4ee46ae7ba3b00 /subcmds
parent5b0b5513d6fe009f4600399203b28490a38a7cf0 (diff)
downloadgit-repo-871e4c7ed153682a77de44e300b5f5461eb08538.tar.gz
sync: skip bloat check if fresh syncv2.60.1
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 <gavinmak@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/sync.py3
1 files changed, 2 insertions, 1 deletions
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.
2110 "experience, sync the entire tree." 2110 "experience, sync the entire tree."
2111 ) 2111 )
2112 2112
2113 self._CheckForBloatedProjects(all_projects, opt) 2113 if existing:
2114 self._CheckForBloatedProjects(all_projects, opt)
2114 2115
2115 if not opt.quiet: 2116 if not opt.quiet:
2116 print("repo sync has finished successfully.") 2117 print("repo sync has finished successfully.")