diff options
author | Tim Schumacher <timschumi@gmx.de> | 2019-04-15 11:17:08 +0200 |
---|---|---|
committer | Tim Schumacher <timschumi@gmx.de> | 2019-04-15 14:37:17 +0200 |
commit | 1f1596b4735e8d27445a5044fd39b2c17555ef80 (patch) | |
tree | 9f761338d8ec5a20b260ff1b09484eb57897b4f7 | |
parent | 0d9b16d1d8bd696efc1b8c6b7a17c40345346f20 (diff) | |
download | git-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
-rwxr-xr-x | project.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |