From af8cfd10d46dd14dda7ecfd0ea2528e02d8e4052 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 30 Apr 2014 19:19:06 +0200 Subject: [PATCH] support git RC versions --- src/phorkie/SetupCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2