gitweb: Cleanup and uniquify die_error calls
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Mar 27, 2007 at 02:07 UTC
f73bbb2d0cdbd0153b7a2b7cd5bab72d1b495a45
1 file changed
+3
-3
gitweb/gitweb.perl
+3
-3
@@ -3154,7 +3154,7 @@ sub git_blame2 {
3154
}
3155
$ftype = git_get_type($hash);
3156
if ($ftype !~ "blob") {
3157
- die_error("400 Bad Request", "Object is not a blob");
3157
+ die_error('400 Bad Request', "Object is not a blob");
3158
}
3159
open ($fd, "-|", git_cmd(), "blame", '-p', '--',
3160
$file_name, $hash_base)
@@ -3220,7 +3220,7 @@ HTML
3220
print "</td>\n";
3221
}
3222
open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^")
3223
- or die_error("could not open git-rev-parse");
3223
+ or die_error(undef, "Open git-rev-parse failed");
3224
my $parent_commit = <$dd>;
3225
close $dd;
3226
chomp($parent_commit);
@@ -3622,7 +3622,7 @@ sub git_snapshot {
3622
$name =~ s/\047/\047\\\047\047/g;
3623
open my $fd, "-|",
3624
"$git archive --format=tar --prefix=\'$name\'/ $hash | $command"
3625
- or die_error(undef, "Execute git-tar-tree failed.");
3625
+ or die_error(undef, "Execute git-tar-tree failed");
3626
binmode STDOUT, ':raw';
3627
print <$fd>;
3628
binmode STDOUT, ':utf8'; # as set at the beginning of gitweb.cgi