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:
parent
4c0e163977
commit
f6899e5c38
4 changed files with 111 additions and 45 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue