Showing 2 changed files with 2 additions and 2 deletions
+1 -1
lib/Gitprep/Git.pm
... ...
@@ -782,7 +782,7 @@ sub parse_commits {
782 782
   $skip ||= 0;
783 783
   my @cmd = ($self->cmd($project), 'rev-list', '--header', @args,
784 784
     ('--max-count=' . $maxcount), ('--skip=' . $skip), $cid, '--',
785
-    ($file ? ($file) : ()));
785
+    (defined $file ? ($file) : ()));
786 786
   open my $fh, '-|', @cmd
787 787
     or croak 'Open git-rev-list failed';
788 788
 
+1 -1
templates/main/commits.html.ep
... ...
@@ -25,7 +25,7 @@
25 25
   # Commits
26 26
   my $page_count = 30;
27 27
   my $commits = $git->parse_commits(
28
-    $project, $commit->{id}, $page_count, $page_count * $page);
28
+    $project, $commit->{id}, $page_count, $page_count * $page, $file);
29 29
   my $commits_count = @$commits;
30 30
   my $commits_date = {};
31 31
   for my $commit (@$commits) {