diff --git a/src/Composer/Command/StatusCommand.php b/src/Composer/Command/StatusCommand.php
index eaf127feb..b16b3f394 100644
--- a/src/Composer/Command/StatusCommand.php
+++ b/src/Composer/Command/StatusCommand.php
@@ -89,7 +89,7 @@ EOT
}
// output errors/warnings
- if (!$errors && !$unpushed) {
+ if (!$errors && !$unpushedChanges) {
$io->writeError('No local changes');
} elseif ($errors) {
$io->writeError('You have changes in the following dependencies:');