]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: die_error first (optional) parameter is HTTP status
authorJakub Narebski <redacted>
Sat, 5 Aug 2006 10:56:04 +0000 (12:56 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 8327f64449aab2fb060e55b42622eecc2a0e739300cd7023b872a6c3a34a2174..a1ae09a7ee87cd21fdef7ed22d32b7f4bfe2e27bcf9b4ca64af10ee1e9606de2 100755 (executable)
@@ -68,7 +68,7 @@ our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
 
 $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);
 
This page took 0.32851 seconds and 4 git commands to generate.