author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 19 Sep 2006 18:47:27 +0000 (20:47 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Sep 2006 17:26:08 +0000 (10:26 -0700) | ||
commit | 62e27f273d66afa996cb7aee6cdb25fbedc053f6 | |
tree | 6db6248114a17cf1fe3ff0bf6e3418bf239c0e04 | tree | snapshot |
parent | 120ddde2a843e923944abd5d6e61f8625e820e92 | commit | diff |
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |