|
@@ -52,7 +52,7 @@ class GitProcessor implements ProcessorInterface
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$branches = `git branch -v --no-abbrev`;
|
|
$branches = `git branch -v --no-abbrev`;
|
|
|
- if (preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
|
|
|
|
|
|
|
+ if ($branches && preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
|
|
|
return self::$cache = array(
|
|
return self::$cache = array(
|
|
|
'branch' => $matches[1],
|
|
'branch' => $matches[1],
|
|
|
'commit' => $matches[2],
|
|
'commit' => $matches[2],
|