1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

#4828 Using version guesser to pull out the commit has for git repositories. The return value is now an array with version and commit values.

This commit is contained in:
Sash 2016-02-22 21:13:39 +00:00
parent 4c0e163977
commit f6899e5c38
4 changed files with 111 additions and 45 deletions

View file

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