From 5e12da0203929a40a506193c60cd149df93f7610 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Mon, 19 Nov 2012 11:24:11 +0100 Subject: [PATCH] Skip locking dev package to time when proc_open does not exist on system. --- src/Composer/Package/Locker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index bd636c8f1..cf38eb670 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -288,7 +288,7 @@ class Locker 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)) {