]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix thinko in git_tags and git_heads
authorJakub Narebski <redacted>
Tue, 19 Sep 2006 18:47:27 +0000 (20:47 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commit3d5a4ed91ab80ecb065d6fa79792a77d00d88af2ce5c2140228c045e52c447c4
treed5ff6033fdb5edde9618ef71e3cc985ab9aa16f2285a6e58419f2f5c8db5ed6c
parent2f619acf24f3099cf37a5e95832c1890368a2145e83312547652772c2a7ab9a6
gitweb: Fix thinko in git_tags and git_heads

git_get_refs_list always return reference to list (and reference to
hash which we ignore), so $taglist (in git_tags) and $headlist (in
git_heads) are always defined, but @$taglist / @$headlist might be
empty. Replaced incorrect "if (defined @$taglist)" with
"if (@$taglist)" in git_tags and respectively in git_heads.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.237703 seconds and 4 git commands to generate.