Fixed error with git if color.ui = true

This commit is contained in:
Grégoire Pineau
2012-07-19 14:35:00 +02:00
parent b42dc56894
commit ea7e9bf765

View File

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