summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2019-04-15 11:17:08 +0200
committerTim Schumacher <timschumi@gmx.de>2019-04-15 14:37:17 +0200
commit1f1596b4735e8d27445a5044fd39b2c17555ef80 (patch)
tree9f761338d8ec5a20b260ff1b09484eb57897b4f7 /project.py
parent0d9b16d1d8bd696efc1b8c6b7a17c40345346f20 (diff)
downloadgit-repo-1f1596b4735e8d27445a5044fd39b2c17555ef80.tar.gz
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
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py5
1 files 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):
1980 1980
1981 if is_sha1 or tag_name is not None: 1981 if is_sha1 or tag_name is not None:
1982 if self._CheckForImmutableRevision(): 1982 if self._CheckForImmutableRevision():
1983 print('Skipped fetching project %s (already have persistent ref)' 1983 if not quiet:
1984 % self.name) 1984 print('Skipped fetching project %s (already have persistent ref)'
1985 % self.name)
1985 return True 1986 return True
1986 if is_sha1 and not depth: 1987 if is_sha1 and not depth:
1987 # When syncing a specific commit and --depth is not set: 1988 # When syncing a specific commit and --depth is not set: