mirror of
https://github.com/git/git.git
synced 2026-03-22 06:30:09 +01:00
resolve textual hashes when looking up "refs"
Thanks to Jon Nelson for the patch. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
@@ -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" .
|
||||
|
||||
Reference in New Issue
Block a user