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 016045e2ab120e50f3b39f9693ec29ebc9e93789..9ee24b8c4bff59ccfaa373bbe7176bf94f7eeaaf 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;