diff --git a/src/Composer/Command/StatusCommand.php b/src/Composer/Command/StatusCommand.php index 417d166a4..42c20fcef 100644 --- a/src/Composer/Command/StatusCommand.php +++ b/src/Composer/Command/StatusCommand.php @@ -125,7 +125,7 @@ EOT $currentVersion = $guesser->guessVersion($dumper->dump($package), $targetDir); - if ($previousRef && $currentVersion && $currentVersion['commit'] !== $previousRef) { + if ($previousRef && $currentVersion && $currentVersion['commit'] !== $previousRef && $currentVersion['pretty_version'] !== $previousRef) { $vcsVersionChanges[$targetDir] = [ 'previous' => [ 'version' => $package->getPrettyVersion(),