From 2a2da80ba6f1a511fbf8f6ffe3800c1455a337d5 Mon Sep 17 00:00:00 2001 From: Anders Björklund Date: Mon, 18 Jan 2021 10:32:36 +0100 Subject: sync: Disable info about disabling pruning when quiet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you have a lot of shared projects, it spams. Bug: https://crbug.com/gerrit/13961 Change-Id: If3f5baef65930830af9a2cd01a1b593dd518ab09 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/294049 Tested-by: Anders Björklund Reviewed-by: Mike Frysinger --- subcmds/sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index d6b8f9dc..225e565a 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -561,8 +561,9 @@ later is required to fix a server side protocol bug. # Make sure pruning never kicks in with shared projects. if (not project.use_git_worktrees and len(project.manifest.GetProjectsWithName(project.name)) > 1): - print('%s: Shared project %s found, disabling pruning.' % - (project.relpath, project.name)) + if not opt.quiet: + print('%s: Shared project %s found, disabling pruning.' % + (project.relpath, project.name)) if git_require((2, 7, 0)): project.EnableRepositoryExtension('preciousObjects') else: -- cgit v1.2.3-54-g00ecf