Fix handling of default branches

main
Jordi Boggiano 4 years ago
parent f70d527f4f
commit 52afa5ef16
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -312,9 +312,6 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
$prefix = substr($branch, 0, 1) === 'v' ? 'v' : '';
$version = $prefix . preg_replace('{(\.9{7})+}', '.x', $parsedBranch);
}
if ($driver->getRootIdentifier() === $branch) {
$parsedBranch = '9999999-dev';
}
$cachedPackage = $this->getCachedPackageVersion($version, $identifier, $isVerbose, $isVeryVerbose);
if ($cachedPackage) {

Loading…
Cancel
Save