From bda9cc5f0e5a5524dc7355a0e251ede9b446b818 Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Thu, 28 Jun 2012 14:14:56 +0200 Subject: [PATCH] possible fix --- lib/Git/Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Git/Repository.php b/lib/Git/Repository.php index e1fa979..a53e0aa 100644 --- a/lib/Git/Repository.php +++ b/lib/Git/Repository.php @@ -510,7 +510,7 @@ class Repository continue; } - preg_match_all("/([a-zA-Z0-9^]{8})[\s]+(.+)[\s]+([0-9]+)\)(.+)/", $log, $match); + preg_match_all("/([a-zA-Z0-9^]{8})[\s]+([0-9]+)\)(.+)/", $log, $match); $current_commit = $match[1][0]; if ($current_commit != $previous_commit) { @@ -518,7 +518,7 @@ class Repository $blame[$i] = array('line' => '', 'commit' => $current_commit); } - $blame[$i]['line'] .= PHP_EOL . $match[4][0]; + $blame[$i]['line'] .= PHP_EOL . $match[3][0]; $previous_commit = $current_commit; }