Older versions of git lack --batch-all-objects, and 2.6+ is
new enough already since v2, lei, etc all depend on it.
my $v = $self->{-opt}->{"sort-$_"};
push @SORT, "--$_=$v" if defined $v;
}
+ ($self->{-opt}->{prune} && $GIT_VER le v2.6) and
+ die "W: --prune requires git v2.6+\n";
init_join_prefork($self)
}
local @IDX_SHARDS = cidx_init($self); # forks workers
SKIP: { # --prune
require_cmd($ENV{XAPIAN_DELVE} || 'xapian-delve', 1);
+ require_git v2.6, 1;
my $csrch = PublicInbox::CodeSearch->new("$tmp/ext");
is(scalar($csrch->mset('s:hi')->items), 1, 'got hit');