1
0
Fork 0

Check out the branch instead of headless commit when creating a project

pull/747/merge
Jordi Boggiano 2012-05-31 14:34:45 +02:00
parent 740d3aa1e3
commit 56b79125bf
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ EOT
}
}
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);