瀏覽代碼

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
Tim Schumacher 6 年之前
父節點
當前提交
1f1596b473
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      project.py

+ 3 - 2
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: