fixed blame when the file has been renamed (in which case the blame command returns the file name in the output)

This commit is contained in:
Fabien Potencier
2012-07-07 08:40:05 +02:00
parent e4b7a3fe8b
commit dca25b61a9

View File

@@ -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) {