From bb726b8a61027ff5f24e7529726645e5f650735d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 27 Oct 2022 14:23:51 +0200 Subject: [PATCH] Fix status command reporting differences when source reference is a tag name, fixes #11155 --- src/Composer/Command/StatusCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),