gitweb: die_error first (optional) parameter is HTTP status
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Aug 5, 2006 at 12:56 UTC
cfd826693688245c6d8f48a5fdc1f6780ecca65b
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -68,7 +68,7 @@ our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
68
69
$projects_list ||= $projectroot;
70
if (! -d $git_temp) {
71
- mkdir($git_temp, 0700) || die_error("Couldn't mkdir $git_temp");
71
+ mkdir($git_temp, 0700) || die_error(undef, "Couldn't mkdir $git_temp");
72
}
73
74
# ======================================================================
@@ -1658,7 +1658,7 @@ sub git_blob_plain {
1658
}
1659
my $type = shift;
1660
open my $fd, "-|", $GIT, "cat-file", "blob", $hash
1661
- or die_error("Couldn't cat $file_name, $hash");
1661
+ or die_error(undef, "Couldn't cat $file_name, $hash");
1662
1663
$type ||= git_blob_plain_mimetype($fd, $file_name);
1664