From: Kay Sievers Date: Thu, 22 Dec 2005 21:58:29 +0000 (+0100) Subject: resolve textual hashes when looking up "refs" X-Git-Tag: v1.4.0~1^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3a6fd94863b618893f300b98588c47921c9cf86;p=git.git resolve textual hashes when looking up "refs" Thanks to Jon Nelson for the patch. Signed-off-by: Kay Sievers --- diff --git a/gitweb.cgi b/gitweb.cgi index 3735535c8..1814f7f2b 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" .