]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Git.pm
spawn (and thus popen_rd) die on failure
[public-inbox.git] / lib / PublicInbox / Git.pm
index f3b7a0a0ef80f2437931ba4b464638f2f1aff060..8ee04e17b511ca1b7c470aa05ea7ce30f26ac033 100644 (file)
@@ -122,7 +122,6 @@ sub _bidi_pipe {
                $redir->{2} = $fh;
        }
        my $p = spawn(\@cmd, undef, $redir);
-       defined $p or fail($self, "spawn failed: $!");
        $self->{$pid} = $p;
        $out_w->autoflush(1);
        $self->{$out} = $out_w;
@@ -256,7 +255,6 @@ sub popen {
 sub qx {
        my ($self, @cmd) = @_;
        my $fh = $self->popen(@cmd);
-       defined $fh or return;
        local $/ = "\n";
        return <$fh> if wantarray;
        local $/;
@@ -347,7 +345,6 @@ sub modified ($) {
        my ($self) = @_;
        my $modified = 0;
        my $fh = popen($self, qw(rev-parse --branches));
-       defined $fh or return $modified;
        cat_async_begin($self);
        local $/ = "\n";
        foreach my $oid (<$fh>) {