Browse files

Skip locking dev package to time when proc_open does not exist on sys…

…tem.
  • Loading branch information...
1 parent cd7db18 commit 5e12da0203929a40a506193c60cd149df93f7610 @beberlei beberlei committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Composer/Package/Locker.php
View
2 src/Composer/Package/Locker.php
@@ -288,7 +288,7 @@ private function lockPackages(array $packages)
unset($spec['version_normalized']);
if ($package->isDev()) {
- if ('git' === $package->getSourceType() && $path = $this->installationManager->getInstallPath($package)) {
+ if ('git' === $package->getSourceType() && $path = $this->installationManager->getInstallPath($package) && function_exists('proc_open')) {
$sourceRef = $package->getSourceReference() ?: $package->getDistReference();
$process = new ProcessExecutor();
if (0 === $process->execute('git log -n1 --pretty=%ct '.escapeshellarg($sourceRef), $output, $path)) {

0 comments on commit 5e12da0

Please sign in to comment.