X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/69896a0d1b94c7151bd49c09da0badc7e95a12e8951109489ebf21250ab3ff03..47c82ca1624c803e5e784d043553434c7f73f798adbad0a960e7954ea110a702:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 4a8d5e6..74edff9 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -630,7 +630,13 @@ sub href(%) { for (my $i = 0; $i < @mapping; $i += 2) { my ($name, $symbol) = ($mapping[$i], $mapping[$i+1]); if (defined $params{$name}) { - push @result, $symbol . "=" . esc_param($params{$name}); + if (ref($params{$name}) eq "ARRAY") { + foreach my $par (@{$params{$name}}) { + push @result, $symbol . "=" . esc_param($par); + } + } else { + push @result, $symbol . "=" . esc_param($params{$name}); + } } } $href .= "?" . join(';', @result) if scalar @result; @@ -1510,6 +1516,7 @@ sub git_get_projects_list { File::Find::find({ follow_fast => 1, # follow symbolic links + follow_skip => 2, # ignore duplicates dangling_symlinks => 0, # ignore dangling symlinks, silently wanted => sub { # skip project-list toplevel, if we get it. @@ -5360,7 +5367,7 @@ sub git_feed { # log/feed of current (HEAD) branch, log of given branch, history of file/directory my $head = $hash || 'HEAD'; - my @commitlist = parse_commits($head, 150); + my @commitlist = parse_commits($head, 150, 0, undef, $file_name); my %latest_commit; my %latest_date;