diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-12-22 22:58:29 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-12-22 22:58:29 +0100 |
commit | d3a6fd94863b618893f300b98588c47921c9cf86 (patch) | |
tree | 086a0f30226ee4ebcadce0c642d61b4cc04cfa2e | |
parent | 212848746e2cdfab6bd262a99376214b660e61b8 (diff) | |
download | git-d3a6fd94863b618893f300b98588c47921c9cf86.tar.gz git-d3a6fd94863b618893f300b98588c47921c9cf86.tar.xz |
resolve textual hashes when looking up "refs"
Thanks to Jon Nelson for the patch.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rwxr-xr-x | gitweb.cgi | 8 |
1 files 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 = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>"; + if (defined $refs->{$co{'id'}}) { + $ref = " <span class=\"tag\">" . esc_html($refs->{$co{'id'}}) . "</span>"; } git_header_html(undef, $expires); print "<div class=\"page_nav\">\n" . @@ -1949,8 +1949,8 @@ sub git_commitdiff { } my $refs = read_info_ref(); my $ref = ""; - if (defined $refs->{$hash}) { - $ref = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>"; + if (defined $refs->{$co{'id'}}) { + $ref = " <span class=\"tag\">" . esc_html($refs->{$co{'id'}}) . "</span>"; } git_header_html(undef, $expires); print "<div class=\"page_nav\">\n" . |