From 1f1596b4735e8d27445a5044fd39b2c17555ef80 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 15 Apr 2019 11:17:08 +0200 Subject: [PATCH] Don't print "persistent ref" message when syncing quietly The newly introduced "Already have persistent ref" message prevents repo from overwriting the last line when syncing quietly. Omit the message when syncing quietly to clean up the output and to restore the previous behaviour. Change-Id: Idf42751c67f95924d6de50092ba54d4c6fe93096 --- project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project.py b/project.py index 94aa816b..f9eb7a28 100755 --- a/project.py +++ b/project.py @@ -1980,8 +1980,9 @@ class Project(object): if is_sha1 or tag_name is not None: if self._CheckForImmutableRevision(): - print('Skipped fetching project %s (already have persistent ref)' - % self.name) + if not quiet: + print('Skipped fetching project %s (already have persistent ref)' + % self.name) return True if is_sha1 and not depth: # When syncing a specific commit and --depth is not set: