Updated VersionGuesser to check if we actually have a version in the returned array (fixes bug originating from f6899e5
when array was first introduced) - as SVN Versions not being guessed as it would previously stop at Git check.
Fixes #6178pull/6174/merge
parent
1baa2a52d4
commit
9be13783a3
|
@ -65,17 +65,17 @@ class VersionGuesser
|
|||
{
|
||||
if (function_exists('proc_open')) {
|
||||
$versionData = $this->guessGitVersion($packageConfig, $path);
|
||||
if (null !== $versionData) {
|
||||
if (null !== $versionData && null !== $versionData['version']) {
|
||||
return $versionData;
|
||||
}
|
||||
|
||||
$versionData = $this->guessHgVersion($packageConfig, $path);
|
||||
if (null !== $versionData) {
|
||||
if (null !== $versionData && null !== $versionData['version']) {
|
||||
return $versionData;
|
||||
}
|
||||
|
||||
$versionData = $this->guessFossilVersion($packageConfig, $path);
|
||||
if (null !== $versionData) {
|
||||
if (null !== $versionData && null !== $versionData['version']) {
|
||||
return $versionData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue