X-Git-Url: https://rtime.felk.cvut.cz/gitweb/git.git/blobdiff_plain/efb2d0c5dcea1069bae2d26c9534e2025ee63e66..921296d3dabcb0bfe0926a1590cc9f7be42ae3e9:/gitweb/gitweb.perl diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7d75dc4c8..934aacb61 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2441,6 +2441,9 @@ sub git_get_projects_list { follow_skip => 2, # ignore duplicates dangling_symlinks => 0, # ignore dangling symlinks, silently wanted => sub { + # global variables + our $project_maxdepth; + our $projectroot; # skip project-list toplevel, if we get it. return if (m!^[/.]$!); # only directories can be git repositories @@ -6148,8 +6151,8 @@ sub git_commitdiff { } push @commit_spec, '--root', $hash; } - open $fd, "-|", git_cmd(), "format-patch", '--encoding=utf8', - '--stdout', @commit_spec + open $fd, "-|", git_cmd(), "format-patch", @diff_opts, + '--encoding=utf8', '--stdout', @commit_spec or die_error(500, "Open git-format-patch failed"); } else { die_error(400, "Unknown commitdiff format");