diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php
index 115baad47..2c4175fa0 100644
--- a/src/Composer/Repository/VcsRepository.php
+++ b/src/Composer/Repository/VcsRepository.php
@@ -76,7 +76,13 @@ class VcsRepository extends ArrayRepository
}
foreach ($driver->getTags() as $tag => $identifier) {
- $this->io->overwrite('Get composer of ' . $this->packageName . ' (' . $tag . ')', false);
+ $msg = 'Get composer info for ' . $this->packageName . ' (' . $tag . ')';
+ if ($debug) {
+ $this->io->write($msg);
+ } else {
+ $this->io->overwrite($msg, false);
+ }
+
$parsedTag = $this->validateTag($versionParser, $tag);
if ($parsedTag && $driver->hasComposerFile($identifier)) {
try {
@@ -122,7 +128,13 @@ class VcsRepository extends ArrayRepository
$this->io->overwrite('', false);
foreach ($driver->getBranches() as $branch => $identifier) {
- $this->io->overwrite('Get composer of ' . $this->packageName . ' (' . $branch . ')', false);
+ $msg = 'Get composer info for ' . $this->packageName . ' (' . $branch . ')';
+ if ($debug) {
+ $this->io->write($msg);
+ } else {
+ $this->io->overwrite($msg, false);
+ }
+
$parsedBranch = $this->validateBranch($versionParser, $branch);
if ($driver->hasComposerFile($identifier)) {
$data = $driver->getComposerInformation($identifier);