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
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;