X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gitweb%2Fgitweb.perl;h=d5dbd6428b599bc937c50cb87de85099fc1af04c;hb=a4d7615453eff93838d496db6b533b327c8cadfc;hp=c876e0fb4e04cd339db0a6a4c15ae5f2570ac1c9;hpb=f3ccea8dd4ba03c8ed1971c317a14c1c34b61705;p=git.git diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index c876e0fb4..d5dbd6428 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5568,7 +5568,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); @@ -5577,7 +5577,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 {