]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdx.pm
spawn (and thus popen_rd) die on failure
[public-inbox.git] / lib / PublicInbox / SearchIdx.pm
index f14809d25fe361a827dc3f18a21e14a594594f2b..cb5549125c4c0fdc0f5ab2b50e55e081ecf692e2 100644 (file)
@@ -666,7 +666,6 @@ sub is_ancestor ($$$) {
        my $cmd = [ 'git', "--git-dir=$git->{git_dir}",
                qw(merge-base --is-ancestor), $cur, $tip ];
        my $pid = spawn($cmd);
-       defined $pid or die "spawning ".join(' ', @$cmd)." failed: $!";
        waitpid($pid, 0) == $pid or die join(' ', @$cmd) .' did not finish';
        $? == 0;
 }