1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2016-09-29 09:18:55 +02:00
3 changed files with 30 additions and 8 deletions

View File

@@ -48,9 +48,13 @@ class MercurialProcessor
$result = explode(' ', trim(`hg id -nb`));
return self::$cache = [
'branch' => $result[1],
'revision' => $result[2],
];
if (count($result) >= 3) {
return self::$cache = [
'branch' => $result[1],
'revision' => $result[2],
];
}
return self::$cache = [];
}
}