Explorar el Código

show pretty version in both scenarios

Steve Buzonas hace 9 años
padre
commit
576721946c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Composer/Command/StatusCommand.php

+ 2 - 2
src/Composer/Command/StatusCommand.php

@@ -112,11 +112,11 @@ EOT
                     if ($previousRef && $currentVersion['commit'] !== $previousRef) {
                         $vcsVersionChanges[$targetDir] = array(
                             'previous' => array(
-                                'version' => $package->getVersion(),
+                                'version' => $package->getPrettyVersion(),
                                 'ref'     => $previousRef
                             ),
                             'current'  => array(
-                                'version' => $parser->normalize($currentVersion['version']),
+                                'version' => $currentVersion['version'],
                                 'ref'     => $currentVersion['commit'],
                             ),
                         );