mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Output message before altering the source ref, fixes #851
This commit is contained in:
parent
890e60c614
commit
011db77876
1 changed files with 1 additions and 1 deletions
|
@ -119,11 +119,11 @@ EOT
|
|||
}
|
||||
}
|
||||
|
||||
$io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>', true);
|
||||
if (0 === strpos($package->getPrettyVersion(), 'dev-') && in_array($package->getSourceType(), array('git', 'hg'))) {
|
||||
$package->setSourceReference(substr($package->getPrettyVersion(), 4));
|
||||
}
|
||||
|
||||
$io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>', true);
|
||||
$projectInstaller = new ProjectInstaller($directory, $dm);
|
||||
$projectInstaller->install(new InstalledFilesystemRepository(new JsonFile('php://memory')), $package);
|
||||
if ($package->getRepository() instanceof NotifiableRepositoryInterface) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue