aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2007-08-03 19:50:42 +0200
committerJunio C Hamano <gitster@pobox.com>2007-08-04 01:55:08 -0700
commit33f243308589120a700f084b54ee597ce6c26069 (patch)
tree3a095a030eb56781b6bfb7de81fee4d27f146e70 /gitweb/gitweb.perl
parent7fd53fce1c574f6a4940eedf36383a4e9ed7ae6a (diff)
downloadgit-33f243308589120a700f084b54ee597ce6c26069.tar.gz
git-33f243308589120a700f084b54ee597ce6c26069.tar.xz
gitweb: Fix handling of $file_name in feed generation
The commit b6093a5c, 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>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 077eb2f4c..f282a677a 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -5366,7 +5366,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;