From ec301ea8bbd748f396162456a7639c175d2aaa87 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 14 Aug 2012 11:19:40 +0200 Subject: [PATCH] Output error if a VCS repo has no package at all instead of silently going through --- src/Composer/Repository/VcsRepository.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php index 641105851..1399bed73 100644 --- a/src/Composer/Repository/VcsRepository.php +++ b/src/Composer/Repository/VcsRepository.php @@ -226,6 +226,10 @@ class VcsRepository extends ArrayRepository } $this->io->overwrite('', false); + + if (!$this->getPackages()) { + throw new \RuntimeException('No composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.'); + } } private function preProcess(VcsDriverInterface $driver, array $data, $identifier)