support git RC versions
[phorkie.git] / src / phorkie / SetupCheck.php
index 5eae1f39f9a528a766a508db5b109fd5b4ed8909..16631db673e2c75e5096b39cfb5fe204ad0062a7 100644 (file)
@@ -77,7 +77,7 @@ class SetupCheck
         if ($retval !== 0) {
             $this->fail('Running git executable failed.');
         }
-        if (!preg_match('#^git version ([0-9.]+)$#', $line, $matches)) {
+        if (!preg_match('#^git version ([0-9.]+(rc[0-9]+)?)$#', $line, $matches)) {
             $this->fail('git version output format unexpected: ' . $line);
         }
         if (version_compare($matches[1], '1.7.5') < 0) {