diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php
index 575352954..a5b17b517 100644
--- a/src/Composer/Repository/VcsRepository.php
+++ b/src/Composer/Repository/VcsRepository.php
@@ -217,11 +217,6 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
foreach ($driver->getTags() as $tag => $identifier) {
$tag = (string) $tag;
$msg = 'Reading composer.json of ' . ($this->packageName ?: $this->url) . ' (' . $tag . ')';
- if ($isVeryVerbose) {
- $this->io->writeError($msg);
- } elseif ($isVerbose) {
- $this->io->overwriteError($msg, false);
- }
// strip the release- prefix from tags if present
$tag = str_replace('release-', '', $tag);
@@ -245,6 +240,12 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
continue;
}
+ if ($isVeryVerbose) {
+ $this->io->writeError($msg);
+ } elseif ($isVerbose) {
+ $this->io->overwriteError($msg, false);
+ }
+
try {
$data = $driver->getComposerInformation($identifier);
if (null === $data) {