Oops :x I noticed this while I was working on a major optimization
for prune...
my $f = "$git_dir/objects/info/alternates";
open $ALT_FH{$fmt}, '>', $f or die "open($f): $!";
}
- say { $ALT_FH{$fmt} } $out or die "say: $!";
+ say { $ALT_FH{$fmt} } $objdir or die "say: $!";
}
sub prep_alternate_start {
$csrch->reopen;
is(scalar($csrch->mset('s:hi')->items), 0,
'hit stays pruned since GIT_DIR was previously pruned');
+ isnt(scalar($csrch->mset('s:NUL')->items), 0,
+ 'prune did not clobber entire index');
}
File::Path::remove_tree("$tmp/ext");