From: Jakub Narebski Date: Tue, 27 Mar 2007 00:07:11 +0000 (+0200) Subject: gitweb: Cleanup and uniquify die_error calls X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/3fd11970b8f9ad2558f159bbe49e11b421c1ff140ef2060d205792eceaf2fe73 gitweb: Cleanup and uniquify die_error calls Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 87a1378..f6c5f29 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3155,7 +3155,7 @@ sub git_blame2 { } $ftype = git_get_type($hash); if ($ftype !~ "blob") { - die_error("400 Bad Request", "Object is not a blob"); + die_error('400 Bad Request', "Object is not a blob"); } open ($fd, "-|", git_cmd(), "blame", '-p', '--', $file_name, $hash_base) @@ -3221,7 +3221,7 @@ HTML print "\n"; } open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^") - or die_error("could not open git-rev-parse"); + or die_error(undef, "Open git-rev-parse failed"); my $parent_commit = <$dd>; close $dd; chomp($parent_commit); @@ -3623,7 +3623,7 @@ sub git_snapshot { $name =~ s/\047/\047\\\047\047/g; open my $fd, "-|", "$git archive --format=tar --prefix=\'$name\'/ $hash | $command" - or die_error(undef, "Execute git-tar-tree failed."); + or die_error(undef, "Execute git-tar-tree failed"); binmode STDOUT, ':raw'; print <$fd>; binmode STDOUT, ':utf8'; # as set at the beginning of gitweb.cgi