mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +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:
parent
212848746e
commit
d3a6fd9486
1 changed files with 4 additions and 4 deletions
|
@ -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" .
|
||||
|
|
Loading…
Reference in a new issue