瀏覽代碼

also check for non-zero status code for git command

Igor Wiedler 13 年之前
父節點
當前提交
6697385ee2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Compiler.php

+ 1 - 1
src/Composer/Compiler.php

@@ -36,7 +36,7 @@ class Compiler
         }
 
         $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.');
         }
         $this->version = trim($process->getOutput());