diff options
author | Eric Wong <e@80x24.org> | 2021-01-31 22:28:29 -1000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-01 11:38:23 +0000 |
commit | c4b2dccd7db4126cab49fd4b2ec1545be5ba5ba6 (patch) | |
tree | 3ac736604d62a1f0cde28321842954e901cd1da6 /lib/PublicInbox/Import.pm | |
parent | 781a1c891dbd1853e35047a4052af0829f4bda50 (diff) | |
download | public-inbox-c4b2dccd7db4126cab49fd4b2ec1545be5ba5ba6.tar.gz |
This avoids a zombie if another step of the event loop takes too long.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 8a06a661..a070aa1e 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -24,6 +24,7 @@ sub default_branch () { delete local $ENV{GIT_CONFIG}; my $r = popen_rd([qw(git config --global init.defaultBranch)]); chomp(my $h = <$r> // ''); + close $r; $h eq '' ? 'refs/heads/master' : $h; } } |