about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-26 07:44:38 +0000
committerEric Wong <e@80x24.org>2023-09-26 21:02:44 +0000
commit0bb5d85daf061ca1a9ab886fa3c4129eb9e18651 (patch)
treecf3534459109ab289c8ec3714e8e0a2eed0df748
parent01ccde5dcd089c6ae9e7571f8112723184931e09 (diff)
downloadpublic-inbox-0bb5d85daf061ca1a9ab886fa3c4129eb9e18651.tar.gz
We need to run `git config -l' in the epoch directory which
failed to get the proper config listing.  This went unnoticed
because it doesn't affect any known users and was only found
during code inspection for waitpid usage cleanups.
-rw-r--r--lib/PublicInbox/Fetch.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Fetch.pm b/lib/PublicInbox/Fetch.pm
index f93eeebe..8f3a87e2 100644
--- a/lib/PublicInbox/Fetch.pm
+++ b/lib/PublicInbox/Fetch.pm
@@ -131,8 +131,9 @@ sub do_fetch { # main entry point
                                 $epoch = $nr;
                         } else {
                                 warn "W: $edir missing remote.*.url\n";
-                                my $pid = spawn([qw(git config -l)], undef,
-                                        { 1 => $lei->{2}, 2 => $lei->{2} });
+                                my $o = { -C => $edir };
+                                $o->{1} = $o->{2} = $lei->{2};
+                                my $pid = spawn([qw(git config -l)], undef, $o);
                                 waitpid($pid, 0);
                                 $lei->child_error($?) if $?;
                         }