* [PATCH] cfgwr: fix non-libgit2 case
@ 2025-02-19 12:39 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2025-02-19 12:39 UTC (permalink / raw)
To: meta
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)
---
lib/PublicInbox/CfgWr.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/CfgWr.pm b/lib/PublicInbox/CfgWr.pm
index 39f22e19..73243f24 100644
--- a/lib/PublicInbox/CfgWr.pm
+++ b/lib/PublicInbox/CfgWr.pm
@@ -45,7 +45,7 @@ sub commit {
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-19 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19 12:39 [PATCH] cfgwr: fix non-libgit2 case Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).