1
0
Fork 0

Skip locking dev package to time when proc_open does not exist on system.

pull/1341/head
Benjamin Eberlei 2012-11-19 11:24:11 +01:00
parent cd7db1861d
commit 5e12da0203
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {