support git RC versions
authorChristian Weiske <cweiske@cweiske.de>
Wed, 30 Apr 2014 17:19:06 +0000 (19:19 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 30 Apr 2014 17:19:06 +0000 (19:19 +0200)
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 ($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) {
             $this->fail('git version output format unexpected: ' . $line);
         }
         if (version_compare($matches[1], '1.7.5') < 0) {