1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Fix version guessing regression and a few other issues, fixes #7127

This commit is contained in:
Jordi Boggiano 2018-04-12 15:16:39 +02:00
parent 79d62cc51c
commit 9041622b86
3 changed files with 4 additions and 13 deletions

View file

@ -155,7 +155,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
if (!isset($package['version'])) {
$versionData = $this->versionGuesser->guessVersion($package, $path);
$package['version'] = $versionData['version'] ?: 'dev-master';
$package['version'] = $versionData['pretty_version'] ?: 'dev-master';
}
$output = '';