openbsd-ports/devel/git/patches/patch-gitweb_gitweb_perl
bernd a9db1239bf Update to git-1.7.3.1.
Add a README.OpenBSD file with some notes about the send-email
command. (via matthieu@)
2010-10-07 09:42:23 +00:00

25 lines
954 B
Plaintext

$OpenBSD: patch-gitweb_gitweb_perl,v 1.17 2010/10/07 09:42:23 bernd Exp $
This prevents the following error: '-T and -B not implemented on filehandles'
--- gitweb/gitweb.perl.orig Sun Sep 19 01:43:54 2010
+++ gitweb/gitweb.perl Tue Sep 21 14:44:36 2010
@@ -5510,7 +5510,7 @@ sub git_blob_plain {
$expires = "+1d";
}
- open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash
+ open my $fd, "-|:raw:perlio", git_cmd(), "cat-file", "blob", $hash
or die_error(500, "Open git-cat-file blob '$hash' failed");
# content-type (can include charset)
@@ -5563,7 +5563,7 @@ sub git_blob {
}
my $have_blame = gitweb_check_feature('blame');
- open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash
+ open my $fd, "-|:raw:perlio", git_cmd(), "cat-file", "blob", $hash
or die_error(500, "Couldn't cat $file_name, $hash");
my $mimetype = blob_mimetype($fd, $file_name);
# use 'blob_plain' (aka 'raw') view for files that cannot be displayed