libgit2 isn't installed on all my test machines, and the
addition of libgit2 support was careless in that it failed to
test the non-libgit2 case thoroughly :x
Fixes: a8073f6c (lg2: use cfgwr_commit to write to configs using libgit2, 2025-02-15)
my $todo = delete $self->{todo} // return;
return $cfgwr_commit->($self->{-f}, $todo) if $cfgwr_commit;
my @x = (git_exe, 'config', '-f', $self->{-f});
- for my $c (@{delete $self->{todo} // []}) {
+ for my $c (@$todo) {
unshift @$c, @x;
if ($c->[scalar(@x)] eq '--unset-all') {
run_wait $c, undef, $opt;