lib/PublicInbox/Import.pm | 2 +- t/v2writable.t | 2 +- diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 94a49fe666f755a1b6da154548a2ea1acc9fe6de..6a640e2360674fce2491f76b21c0ea6ec39c735d 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -208,7 +208,7 @@ 'from ', ($parent ? $parent : $tip), "\n" or wfail; if (defined $path) { print $w "D $path\n\n" or wfail; } else { - print $w "M 100644 :$blob d\n\n" or wfail; + print $w "M 100644 :$blob _/D\n\n" or wfail; } $self->{nchg}++; (($self->{tip} = ":$commit"), $cur); diff --git a/t/v2writable.t b/t/v2writable.t index a5c982e90be592c735870e28f11aeb4e41f1e1da..c6bcefd4f0e1833a0432211177b1e40a0815818b 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -210,7 +210,7 @@ $srch->each_smsg_by_mid($smsg->mid, sub { push @found, @_; 1 }); is(scalar(@found), 0, 'no longer found in Xapian skeleton'); my $after = $git0->qx(qw(log -1 --pretty=raw --raw -r --no-abbrev)); - if ($after =~ m!( [a-f0-9]+ )A\td$!) { + if ($after =~ m!( [a-f0-9]+ )A\t_/D$!) { my $oid = $1; ok(index($before, $oid) > 0, 'no new blob introduced'); } else {