diff --git a/gitweb.cgi b/gitweb.cgi index 3735535c8b..1814f7f2b3 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -1707,8 +1707,8 @@ sub git_commit { } my $refs = read_info_ref(); my $ref = ""; - if (defined $refs->{$hash}) { - $ref = " " . esc_html($refs->{$hash}) . ""; + if (defined $refs->{$co{'id'}}) { + $ref = " " . esc_html($refs->{$co{'id'}}) . ""; } git_header_html(undef, $expires); print "
\n" . @@ -1949,8 +1949,8 @@ sub git_commitdiff { } my $refs = read_info_ref(); my $ref = ""; - if (defined $refs->{$hash}) { - $ref = " " . esc_html($refs->{$hash}) . ""; + if (defined $refs->{$co{'id'}}) { + $ref = " " . esc_html($refs->{$co{'id'}}) . ""; } git_header_html(undef, $expires); print "
\n" .