From af2429033aef447f0149b207d87ffacfb057fc6d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 31 Dec 2020 17:47:49 -1200 Subject: import: unset GIT_CONFIG with `git config --global' GIT_CONFIG is set by -convert, and user may have it set for other reasons. In either case, it conflicts with any any attempt to use `git config --global` so we have to unset it. This fixes t/multi-mid.t under TEST_RUN_MODE=0 --- lib/PublicInbox/Import.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 47a529ff..0aff0e9d 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -21,6 +21,7 @@ use POSIX qw(strftime); sub default_branch () { state $default_branch = do { + delete local $ENV{GIT_CONFIG}; my $r = popen_rd([qw(git config --global init.defaultBranch)]); chomp(my $h = <$r> // ''); $h eq '' ? 'refs/heads/master' : $h; -- cgit v1.2.3-24-ge0c7