about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-23 03:38:21 +0600
committerEric Wong <e@80x24.org>2021-02-24 11:12:56 +0000
commite01fe4f05196b56775fffffe23572ec648b14ec6 (patch)
treeba6fec8fcfe4e0bdabd45471131f33e1e557c6f2 /lib/PublicInbox/Import.pm
parenta5af0bd94dc0504ec34d49199eb2b7d39ceb8557 (diff)
downloadpublic-inbox-e01fe4f05196b56775fffffe23572ec648b14ec6.tar.gz
Apparently this feature is only in Perl 5.12+, and we're
still on Perl 5.10.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index e803ee74..b8fa5c21 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -21,8 +21,8 @@ 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)]);
+                my $r = popen_rd([qw(git config --global init.defaultBranch)],
+                                 { GIT_CONFIG => undef });
                 chomp(my $h = <$r> // '');
                 close $r;
                 $h eq '' ? 'refs/heads/master' : $h;