diff --git a/src/Git/Commit.php b/src/Git/Commit.php index 46d61d0..d4ab38e 100644 --- a/src/Git/Commit.php +++ b/src/Git/Commit.php @@ -330,6 +330,11 @@ public function getMentions(): array */ protected function parse() { + // Empty + if (empty($this->raw)) { + return; + } + $rows = explode("\n", $this->raw); $subject = $rows[0];