1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Fix create-project not updating to latest commit when cache is present, fixes #7550

This commit is contained in:
Jordi Boggiano 2018-08-16 16:48:47 +02:00
parent 020d1f88c7
commit 0181f07491

View file

@ -345,10 +345,6 @@ EOT
$package = $package->getAliasOf();
}
if (0 === strpos($package->getPrettyVersion(), 'dev-') && in_array($package->getSourceType(), array('git', 'hg'))) {
$package->setSourceReference(substr($package->getPrettyVersion(), 4));
}
$dm = $this->createDownloadManager($io, $config);
$dm->setPreferSource($preferSource)
->setPreferDist($preferDist)