diff options
author | Eric Wong <e@80x24.org> | 2021-02-23 03:38:21 +0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-24 11:12:56 +0000 |
commit | e01fe4f05196b56775fffffe23572ec648b14ec6 (patch) | |
tree | ba6fec8fcfe4e0bdabd45471131f33e1e557c6f2 /lib/PublicInbox/Import.pm | |
parent | a5af0bd94dc0504ec34d49199eb2b7d39ceb8557 (diff) | |
download | public-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.pm | 4 |
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; |