]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SolverGit.pm
solvergit: don't drop update-index stdin with qspawn
[public-inbox.git] / lib / PublicInbox / SolverGit.pm
index 58869ffb3677c66432dbcebe9a7ea6684db9dc07..49f948958cd45a0bdcf1a9de20114f2cad7b5bd1 100644 (file)
@@ -241,7 +241,7 @@ sub prepare_index ($) {
        sysseek($in, 0, 0) or die "seek: $!";
 
        dbg($self, 'preparing index');
-       my $rdr = { 0 => fileno($in) };
+       my $rdr = { 0 => fileno($in), -hold => $in };
        my $cmd = [ qw(git update-index -z --index-info) ];
        my $qsp = PublicInbox::Qspawn->new($cmd, $self->{git_env}, $rdr);
        $qsp->psgi_qx($self->{psgi_env}, undef, sub {