1
0
Fork 0

Added test if proc_open function is enabled in RootPackageLoader

pull/759/head
Martin Hasoň 2012-06-02 08:54:42 +02:00
parent 639aba6f99
commit 09f774c705
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class RootPackageLoader extends ArrayLoader
private function guessVersion(array $config) private function guessVersion(array $config)
{ {
// try to fetch current version from git branch // try to fetch current version from git branch
if (0 === $this->process->execute('git branch --no-color --no-abbrev -v', $output)) { if (function_exists('proc_open') && 0 === $this->process->execute('git branch --no-color --no-abbrev -v', $output)) {
$branches = array(); $branches = array();
$isFeatureBranch = true; $isFeatureBranch = true;
$version = null; $version = null;