prepend '--' to filelist when calling git-diff-tree
authorRocco Rutte <pdmef@gmx.net>
Tue, 30 May 2006 12:40:10 +0000 (14:40 +0200)
committerKay Sievers <kay.sievers@suse.de>
Tue, 30 May 2006 12:40:10 +0000 (14:40 +0200)
gitweb.cgi

index 016045e..9ee24b8 100755 (executable)
@@ -2123,7 +2123,7 @@ sub git_history {
              "</div>\n";
        print "<div class=\"page_path\"><b>/" . esc_html($file_name) . "</b><br/></div>\n";
 
-       open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin \'$file_name\'";
+       open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -- \'$file_name\'";
        my $commit;
        print "<table cellspacing=\"0\">\n";
        my $alternate = 0;