From bb701da8c2da773aa1aded4687f1e474b3f64877 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 2 Nov 2012 18:12:40 +0100 Subject: [PATCH] Do not overwrite output in verbose mode --- src/Composer/Repository/VcsRepository.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php index d26e37613..a7cf0181b 100644 --- a/src/Composer/Repository/VcsRepository.php +++ b/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) { $msg = 'Reading composer.json of ' . ($this->packageName ?: $this->url) . ' (' . $branch . ')'; @@ -227,7 +229,9 @@ class VcsRepository extends ArrayRepository } } - $this->io->overwrite('', false); + if (!$verbose) { + $this->io->overwrite('', false); + } 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.');