From: Christian Weiske Date: Wed, 30 Apr 2014 17:19:06 +0000 (+0200) Subject: support git RC versions X-Git-Tag: v0.4.0~54 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/af8cfd10d46dd14dda7ecfd0ea2528e02d8e4052 support git RC versions --- diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index 5eae1f3..16631db 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -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) {