From d3a6fd94863b618893f300b98588c47921c9cf86 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 22 Dec 2005 22:58:29 +0100 Subject: [PATCH] resolve textual hashes when looking up "refs" Thanks to Jon Nelson for the patch. Signed-off-by: Kay Sievers --- gitweb.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" . -- 2.45.2