From ea7e9bf7650707b63e34fd8b27a8474f386a7fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 19 Jul 2012 14:35:00 +0200 Subject: [PATCH] Fixed error with git if color.ui = true --- src/GitList/Component/Git/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitList/Component/Git/Client.php b/src/GitList/Component/Git/Client.php index 8d8b875..69ae617 100644 --- a/src/GitList/Component/Git/Client.php +++ b/src/GitList/Component/Git/Client.php @@ -129,7 +129,7 @@ class Client public function run(Repository $repository, $command) { $descriptors = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w")); - $process = proc_open($this->getPath() . ' ' . $command, $descriptors, $pipes, $repository->getPath()); + $process = proc_open($this->getPath() . ' -c "color.ui"=false ' . $command, $descriptors, $pipes, $repository->getPath()); if (!is_resource($process)) { throw new \RuntimeException('Unable to execute command: ' . $command);