提交 cfd82669 编写于 作者: J Jakub Narebski 提交者: Junio C Hamano

gitweb: die_error first (optional) parameter is HTTP status

Signed-off-by: NJakub Narebski <jnareb@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 154b4d78
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册