bisect says its aed93de428d7d12ee23d84d27265af1e37eb348f,
"gitweb: Support for tag clouds".
This appears to fix it. As for how I missed this, I do not know.
I usually tested topic branches pretty heavily before merging them
to next, and I tested both master and next daily. So I thought
the topic was ready to merge into master. Apparently it was not.
How I missed the failed merge, I don't know. :-\
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 1116800..793166e 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1808,7 +1808,7 @@ sub git_get_project_ctags {
foreach (<$git_dir/ctags/*>) {
open CT, $_ or next;
my $val = <CT>;
- chomp $val;
+ chomp $val if defined $val;
close CT;
my $ctag = $_; $ctag =~ s#.*/##;
$ctags->{$ctag} = $val;
@@ -1822,7 +1822,11 @@ sub git_populate_project_tagcloud {
# First, merge different-cased tags; tags vote on casing
my %ctags_lc;
foreach (keys %$ctags) {
- $ctags_lc{lc $_}->{count} += $ctags->{$_};
+ if (defined ($ctags_lc{lc $_}->{count})) {
+ $ctags_lc{lc $_}->{count} += $ctags->{$_};
+ } else {
+ $ctags_lc{lc $_}->{count} = $ctags->{$_};
+ }
if (not $ctags_lc{lc $_}->{topcount}
or $ctags_lc{lc $_}->{topcount} < $ctags->{$_}) {
$ctags_lc{lc $_}->{topcount} = $ctags->{$_};
@@ -3769,7 +3773,11 @@ sub git_project_list_body {
my %ctags;
foreach my $p (@projects) {
foreach my $ct (keys %{$p->{'ctags'}}) {
- $ctags{$ct} += $p->{'ctags'}->{$ct};
+ if (defined $ctags{$ct}) {
+ $ctags{$ct} += $p->{'ctags'}->{$ct};
+ } else {
+ $ctags{$ct} = $p->{'ctags'}->{$ct};
+ }
}
}
my $cloud = git_populate_project_tagcloud(\%ctags);
--
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html