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:
parent
020d1f88c7
commit
0181f07491
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue