mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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
This commit is contained in:
parent
0d9b16d1d8
commit
1f1596b473
@ -1980,8 +1980,9 @@ class Project(object):
|
|||||||
|
|
||||||
if is_sha1 or tag_name is not None:
|
if is_sha1 or tag_name is not None:
|
||||||
if self._CheckForImmutableRevision():
|
if self._CheckForImmutableRevision():
|
||||||
print('Skipped fetching project %s (already have persistent ref)'
|
if not quiet:
|
||||||
% self.name)
|
print('Skipped fetching project %s (already have persistent ref)'
|
||||||
|
% self.name)
|
||||||
return True
|
return True
|
||||||
if is_sha1 and not depth:
|
if is_sha1 and not depth:
|
||||||
# When syncing a specific commit and --depth is not set:
|
# When syncing a specific commit and --depth is not set:
|
||||||
|
Loading…
Reference in New Issue
Block a user