gitweb: die_error first (optional) parameter is HTTP status
authorJakub Narebski <jnareb@gmail.com>
Sat, 5 Aug 2006 10:56:04 +0000 (12:56 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 6 Aug 2006 08:53:16 +0000 (01:53 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl
index 7f4387fde6e55540ba9001b88c0587813ae04d48..040024ccf788a55ce5a19373cbb8c1014b59c590 100755 (executable)
@@ -68,7 +68,7 @@
 
 $projects_list ||= $projectroot;
 if (! -d $git_temp) {
-       mkdir($git_temp, 0700) || die_error("Couldn't mkdir $git_temp");
+       mkdir($git_temp, 0700) || die_error(undef, "Couldn't mkdir $git_temp");
 }
 
 # ======================================================================
@@ -1658,7 +1658,7 @@ sub git_blob_plain {
        }
        my $type = shift;
        open my $fd, "-|", $GIT, "cat-file", "blob", $hash
-               or die_error("Couldn't cat $file_name, $hash");
+               or die_error(undef, "Couldn't cat $file_name, $hash");
 
        $type ||= git_blob_plain_mimetype($fd, $file_name);