From 40c9584746b2527c2df8d0e76ba4ef50a71d4cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20M=C3=A1rton?= Date: Mon, 4 Mar 2013 16:33:53 +0100 Subject: [PATCH] Fixes #1653 --- src/Composer/Command/ShowCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index c05517398..8be36ed65 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -80,7 +80,8 @@ EOT $output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos))); } } elseif ($composer = $this->getComposer(false)) { - $localRepo = $composer = $this->getComposer()->getRepositoryManager()->getLocalRepository(); + $composer = $this->getComposer(); + $localRepo = $composer->getRepositoryManager()->getLocalRepository(); $installedRepo = new CompositeRepository(array($localRepo, $platformRepo)); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); } else {