diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-08-05 12:56:04 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-06 01:53:16 -0700 |
commit | cfd826693688245c6d8f48a5fdc1f6780ecca65b (patch) | |
tree | 776eaac8aa09b5bfd20b5e44549ed597bbd8e47c /gitweb/gitweb.perl | |
parent | gitweb: Separate input validation and dispatch, add comment about opml action (diff) | |
download | tgif-cfd826693688245c6d8f48a5fdc1f6780ecca65b.tar.xz |
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>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7f4387fde6..040024ccf7 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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); |