1
0
Fork 0

Fix proc_open failure, fixes #1346

pull/1349/merge
Jordi Boggiano 2012-11-20 11:36:04 +01:00
parent 6f56568881
commit 03b9d73af5
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) && function_exists('proc_open')) {
if (function_exists('proc_open') && 'git' === $package->getSourceType() && ($path = $this->installationManager->getInstallPath($package))) {
$sourceRef = $package->getSourceReference() ?: $package->getDistReference();
$process = new ProcessExecutor();
if (0 === $process->execute('git log -n1 --pretty=%ct '.escapeshellarg($sourceRef), $output, $path)) {