diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php
index d876ae73e..034260d0c 100644
--- a/src/Composer/Repository/VcsRepository.php
+++ b/src/Composer/Repository/VcsRepository.php
@@ -136,7 +136,7 @@ class VcsRepository extends ArrayRepository
if ($verbose) {
$this->io->writeError($msg);
} else {
- $this->io->overwrite($msg, false);
+ $this->io->overwriteError($msg, false);
}
// strip the release- prefix from tags if present
@@ -192,7 +192,7 @@ class VcsRepository extends ArrayRepository
}
if (!$verbose) {
- $this->io->overwrite('', false);
+ $this->io->overwriteError('', false);
}
foreach ($driver->getBranches() as $branch => $identifier) {
@@ -200,7 +200,7 @@ class VcsRepository extends ArrayRepository
if ($verbose) {
$this->io->writeError($msg);
} else {
- $this->io->overwrite($msg, false);
+ $this->io->overwriteError($msg, false);
}
if (!$parsedBranch = $this->validateBranch($branch)) {
@@ -257,7 +257,7 @@ class VcsRepository extends ArrayRepository
$driver->cleanup();
if (!$verbose) {
- $this->io->overwrite('', false);
+ $this->io->overwriteError('', false);
}
if (!$this->getPackages()) {
diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php
index ae1938323..9e6b50d74 100644
--- a/src/Composer/Util/RemoteFilesystem.php
+++ b/src/Composer/Util/RemoteFilesystem.php
@@ -228,7 +228,7 @@ class RemoteFilesystem
}
if ($this->progress && !$this->retry) {
- $this->io->overwrite(" Downloading: 100%");
+ $this->io->overwriteError(" Downloading: 100%");
}
// handle copy command if download was successful
@@ -329,7 +329,7 @@ class RemoteFilesystem
if ((0 === $progression % 5) && $progression !== $this->lastProgress) {
$this->lastProgress = $progression;
- $this->io->overwrite(" Downloading: $progression%", false);
+ $this->io->overwriteError(" Downloading: $progression%", false);
}
}
break;
@@ -371,7 +371,7 @@ class RemoteFilesystem
throw new TransportException("Invalid credentials for '" . $this->fileUrl . "', aborting.", $httpStatus);
}
- $this->io->overwrite(' Authentication required ('.parse_url($this->fileUrl, PHP_URL_HOST).'):');
+ $this->io->overwriteError(' Authentication required ('.parse_url($this->fileUrl, PHP_URL_HOST).'):');
$username = $this->io->ask(' Username: ');
$password = $this->io->askAndHideAnswer(' Password: ');
$this->io->setAuthentication($this->originUrl, $username, $password);
diff --git a/tests/Composer/Test/Util/RemoteFilesystemTest.php b/tests/Composer/Test/Util/RemoteFilesystemTest.php
index bbeba908e..04502ebdc 100644
--- a/tests/Composer/Test/Util/RemoteFilesystemTest.php
+++ b/tests/Composer/Test/Util/RemoteFilesystemTest.php
@@ -119,7 +119,7 @@ class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase
$io = $this->getMock('Composer\IO\IOInterface');
$io
->expects($this->once())
- ->method('overwrite')
+ ->method('overwriteError')
;
$fs = new RemoteFilesystem($io);