浏览代码

Do not overwrite output in verbose mode

Jordi Boggiano 12 年之前
父节点
当前提交
bb701da8c2
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/Composer/Repository/VcsRepository.php

+ 6 - 2
src/Composer/Repository/VcsRepository.php

@@ -175,7 +175,9 @@ class VcsRepository extends ArrayRepository
             }
             }
         }
         }
 
 
-        $this->io->overwrite('', false);
+        if (!$verbose) {
+            $this->io->overwrite('', false);
+        }
 
 
         foreach ($driver->getBranches() as $branch => $identifier) {
         foreach ($driver->getBranches() as $branch => $identifier) {
             $msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $branch . '</comment>)';
             $msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $branch . '</comment>)';
@@ -227,7 +229,9 @@ class VcsRepository extends ArrayRepository
             }
             }
         }
         }
 
 
-        $this->io->overwrite('', false);
+        if (!$verbose) {
+            $this->io->overwrite('', false);
+        }
 
 
         if (!$this->getPackages()) {
         if (!$this->getPackages()) {
             throw new \RuntimeException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');
             throw new \RuntimeException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');