if ($retval !== 0) {
$this->fail('Running git executable failed.');
}
- if (!preg_match('#^git version ([0-9.]+(rc[0-9]+)?)$#', $line, $matches)) {
+ if (!preg_match('#^git version ([0-9.]+(rc[0-9]+)?)(?: \(Apple Git-\d+\))?$#', $line, $matches)) {
$this->fail('git version output format unexpected: ' . $line);
+ return;
}
if (version_compare($matches[1], '1.7.5') < 0) {
$this->fail(