From 7eab0eedf2960049e245f86249ba1150c1ca6a76 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Mon, 9 Jan 2023 16:14:54 -0800 Subject: [PATCH] sync: Silence 'not found in manifest' message This can potentially show up when sync'ing projects with submodules that are not declared in the manifest as well as the internal '.repo/repo' project, which is likely not desirable from a user standpoint. Change-Id: I93d7fcd6e3fd1818357ea4537882a864dea9942c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355920 Reviewed-by: LaMont Jones Reviewed-by: Mike Frysinger Tested-by: Michael Kelly --- subcmds/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index 8db429bf..1c38d266 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -772,7 +772,7 @@ later is required to fix a server side protocol bug. # We do not support switching between the options. The environment # variable is present for testing and migration only. return not project.UseAlternates - print(f'\r{relpath}: project not found in manifest.', file=sys.stderr) + return False def _SetPreciousObjectsState(self, project: Project, opt):