1
0
Fork 0

also check for non-zero status code for git command

pull/107/head
Igor Wiedler 2011-11-13 00:22:52 +01:00
parent b15ec17a06
commit 6697385ee2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Compiler
} }
$process = new Process('git log --pretty="%h" -n1 HEAD'); $process = new Process('git log --pretty="%h" -n1 HEAD');
if ($process->run() > 0) { if ($process->run() != 0) {
throw new \RuntimeException('The git binary cannot be found.'); throw new \RuntimeException('The git binary cannot be found.');
} }
$this->version = trim($process->getOutput()); $this->version = trim($process->getOutput());