Avoid skipping feature branch detection if no branch-alias is defined at all
parent
70f23e42f3
commit
0d2c2c044a
|
@ -231,7 +231,7 @@ class VersionGuesser
|
|||
|
||||
// ignore feature branches if they have no branch-alias or self.version is used
|
||||
// and find the branch they came from to use as a version instead
|
||||
if ((isset($packageConfig['extra']['branch-alias']) && !isset($packageConfig['extra']['branch-alias'][$version]))
|
||||
if (!isset($packageConfig['extra']['branch-alias'][$version])
|
||||
|| strpos(json_encode($packageConfig), '"self.version"')
|
||||
) {
|
||||
$branch = preg_replace('{^dev-}', '', $version);
|
||||
|
|
Loading…
Reference in New Issue