Explorar o código

show pretty version in both scenarios

Steve Buzonas %!s(int64=9) %!d(string=hai) anos
pai
achega
576721946c
Modificáronse 1 ficheiros con 2 adicións e 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'],
                             ),
                         );