Skip to content

Commit

Permalink
Try to fix matteosister#112 locale WTF
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-merlin committed Aug 6, 2017
1 parent 700ecb3 commit d3e4b88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GitElephant/Command/Caller/Caller.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public function execute($cmd, $git = true, $cwd = null, $acceptedExitCodes = arr
$cmd = $this->binary->getPath() . ' ' . $cmd;
}

// We rely on the C locale in all output we parse.
$cmd = 'LC_ALL=C ' . $cmd;

$process = new Process($cmd, is_null($cwd) ? $this->repositoryPath : $cwd);
$process->setTimeout(15000);
$process->run();
Expand Down

0 comments on commit d3e4b88

Please sign in to comment.