X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/8c5876e8803cb89d50d4ee6b5f8259941844b941a9425534e36b4a2f581244d7..053713b077eb87270f5bfa4e015a537848ba230a9973231eeaf409dfa2b158dd:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index dac4129..1ab150d 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -5634,7 +5634,7 @@ sub git_tags_body { sub git_heads_body { # uses global variable $project - my ($headlist, $head, $from, $to, $extra) = @_; + my ($headlist, $head_at, $from, $to, $extra) = @_; $from = 0 unless defined $from; $to = $#{$headlist} if (!defined $to || $#{$headlist} < $to); @@ -5643,7 +5643,7 @@ sub git_heads_body { for (my $i = $from; $i <= $to; $i++) { my $entry = $headlist->[$i]; my %ref = %$entry; - my $curr = $ref{'id'} eq $head; + my $curr = defined $head_at && $ref{'id'} eq $head_at; if ($alternate) { print "\n"; } else {