Skip to content

Commit 33f2433

Browse files
jnarebgitster
authored andcommitted
gitweb: Fix handling of $file_name in feed generation
The commit b6093a5, by Robert Fitzsimons: "gitweb: Change atom, rss actions to use parse_commits." forgot to pass $file_name parameter to parse_commits subroutine. If git_feed is provided a file name, it ought to show only the history affecting that file or a directory. The title was being set correctly, but all commits from history were being shown. Signed-off-by: Steven Walter <stevenrwalter@gmail.com> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7fd53fc commit 33f2433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5366,7 +5366,7 @@ sub git_feed {
53665366

53675367
# log/feed of current (HEAD) branch, log of given branch, history of file/directory
53685368
my $head = $hash || 'HEAD';
5369-
my @commitlist = parse_commits($head, 150);
5369+
my @commitlist = parse_commits($head, 150, 0, undef, $file_name);
53705370

53715371
my %latest_commit;
53725372
my %latest_date;

0 commit comments

Comments
 (0)