]> Sergey Matveev's repositories - public-inbox.git/commitdiff
solvergit: include the $oid_want tmpdir name
authorEric Wong <e@80x24.org>
Tue, 5 Feb 2019 21:33:16 +0000 (21:33 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Feb 2019 21:40:54 +0000 (21:40 +0000)
This can help admins diagnose problems with SolverGit, since
qspawn logs the failed "git apply" command-line in stderr.
(or it can waste admins' time because sometimes there's crap
 mail clients which mangle patches)

lib/PublicInbox/SolverGit.pm

index a13ae9e51fba3d1ddfa13ced17806eb809234f21..463a9b6906ba069f87a049ea7f4fc40a51334153 100644 (file)
@@ -558,7 +558,7 @@ sub solve ($$$$$) {
        $self->{todo} = [ { %$hints, oid_b => $oid_want } ];
        $self->{patches} = []; # [ $di, $di, ... ]
        $self->{found} = {}; # { abbr => [ ::Git, oid, type, size, $di ] }
-       $self->{tmp} = File::Temp->newdir('solver.tmp-XXXXXXXX', TMPDIR => 1);
+       $self->{tmp} = File::Temp->newdir("solver.$oid_want-XXXXXXXX", TMPDIR => 1);
 
        dbg($self, "solving $oid_want ...");
        my $step_cb = step_cb($self);