Ver código fonte

fix issue where path repositories would be matched oddly

Steve Buzonas 8 anos atrás
pai
commit
d0c009edf2
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/Composer/Command/StatusCommand.php

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

@@ -82,10 +82,9 @@ EOT
         // list packages
         foreach ($installedRepo->getCanonicalPackages() as $package) {
             $downloader = $dm->getDownloaderForInstalledPackage($package);
+            $targetDir = $im->getInstallPath($package);
 
             if ($downloader instanceof ChangeReportInterface) {
-                $targetDir = $im->getInstallPath($package);
-
                 if (is_link($targetDir)) {
                     $errors[$targetDir] = $targetDir . ' is a symbolic link.';
                 }
@@ -111,6 +110,7 @@ EOT
                     $currentVersion = $guesser->guessVersion($dumper->dump($package), $targetDir);
 
                     if ($previousRef && $currentVersion['commit'] !== $previousRef) {
+                        var_dump($previousRef, $currentVersion['commit'], $package->getName(), $package->getInstallationSource());
                         $vcsVersionChanges[$targetDir] = array(
                             'previous' => array(
                                 'version' => $package->getVersion(),