Merge branch 'maint' of git://repo.or.cz/git-gui into maint
[gitweb.git] / gitweb / gitweb.perl
index 17d8efb29cfa99f4d3b8e3dfaa9aec45fcdd43bb..5c7011a37b2e4dab8c38de54a3e531d2fa16ddbe 100755 (executable)
@@ -5040,7 +5040,8 @@ sub git_feed {
 
                # get list of changed files
                open my $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts,
-                       $co{'parent'}, $co{'id'}, "--", (defined $file_name ? $file_name : ())
+                       $co{'parent'} || "--root",
+                       $co{'id'}, "--", (defined $file_name ? $file_name : ())
                        or next;
                my @difftree = map { chomp; $_ } <$fd>;
                close $fd