Skip to content

Commit

Permalink
Merge branch 'zf/maint-gitweb-acname'
Browse files Browse the repository at this point in the history
* zf/maint-gitweb-acname:
  gitweb: parse_commit_text encoding fix
  • Loading branch information
Junio C Hamano committed Aug 11, 2009
2 parents 38a9f35 + 5ed5bbc commit 9c51640
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ sub parse_commit_text {
} elsif ((!defined $withparents) && ($line =~ m/^parent ([0-9a-fA-F]{40})$/)) {
push @parents, $1;
} elsif ($line =~ m/^author (.*) ([0-9]+) (.*)$/) {
$co{'author'} = $1;
$co{'author'} = to_utf8($1);
$co{'author_epoch'} = $2;
$co{'author_tz'} = $3;
if ($co{'author'} =~ m/^([^<]+) <([^>]*)>/) {
Expand All @@ -2583,10 +2583,9 @@ sub parse_commit_text {
$co{'author_name'} = $co{'author'};
}
} elsif ($line =~ m/^committer (.*) ([0-9]+) (.*)$/) {
$co{'committer'} = $1;
$co{'committer'} = to_utf8($1);
$co{'committer_epoch'} = $2;
$co{'committer_tz'} = $3;
$co{'committer_name'} = $co{'committer'};
if ($co{'committer'} =~ m/^([^<]+) <([^>]*)>/) {
$co{'committer_name'} = $1;
$co{'committer_email'} = $2;
Expand Down

0 comments on commit 9c51640

Please sign in to comment.