X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/c39d459fa4114fe3f7d861b3e7a441084a1cccaa41d79168de75e96987370c99..b3fa569fa2c65abaf6a84043079af7fff8286a590057b51abe883e7bdd63e654:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 0fac8e2..6e727c8 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -1295,8 +1295,9 @@ sub parse_commit { $co{'author'} = $1; $co{'author_epoch'} = $2; $co{'author_tz'} = $3; - if ($co{'author'} =~ m/^([^<]+) ]*)>/) { + $co{'author_name'} = $1; + $co{'author_email'} = $2; } else { $co{'author_name'} = $co{'author'}; } @@ -1305,7 +1306,12 @@ sub parse_commit { $co{'committer_epoch'} = $2; $co{'committer_tz'} = $3; $co{'committer_name'} = $co{'committer'}; - $co{'committer_name'} =~ s/ <.*//; + if ($co{'committer'} =~ m/^([^<]+) <([^>]*)>/) { + $co{'committer_name'} = $1; + $co{'committer_email'} = $2; + } else { + $co{'committer_name'} = $co{'committer'}; + } } } if (!defined $co{'tree'}) {