Fix create-project not updating to latest commit when cache is present, fixes #7550
parent
020d1f88c7
commit
0181f07491
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue