mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user