From dca25b61a9ca10f11260b2a14928621c734c569b Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 7 Jul 2012 08:40:05 +0200 Subject: [PATCH] fixed blame when the file has been renamed (in which case the blame command returns the file name in the output) --- lib/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Git/Repository.php b/lib/Git/Repository.php index cf58f96..b9fc3d4 100644 --- a/lib/Git/Repository.php +++ b/lib/Git/Repository.php @@ -515,7 +515,7 @@ class Repository continue; } - preg_match_all("/([a-zA-Z0-9^]{8})[\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) {