X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/89c1fb3478173d8eb5633f41cb98da4aa31f30fbed58573f5ca01972ded20af8..6a1ba015e29ba7ad66fcc57309941cb92a024a32591ac3860d4ce7a47daaeca1:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 275c32d..39d6a8d 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3466,8 +3466,7 @@ sub run_highlighter { my ($fd, $highlight, $syntax) = @_; return $fd unless ($highlight && defined $syntax); - close $fd - or die_error(404, "Reading blob failed"); + close $fd; open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ". quote_command($highlight_bin). " --xhtml --fragment --syntax $syntax |"