Browse Source

resolve textual hashes when looking up "refs"

Thanks to Jon Nelson for the patch.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
maint
Kay Sievers 19 years ago
parent
commit
d3a6fd9486
  1. 8
      gitweb.cgi

8
gitweb.cgi

@ -1707,8 +1707,8 @@ sub git_commit { @@ -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 { @@ -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" .

Loading…
Cancel
Save