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:
@@ -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 = [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user