]> Sergey Matveev's repositories - public-inbox.git/commit
lei_mirror: reduce noise on interrupted clones
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:31:20 +0000 (05:31 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:38:54 +0000 (23:38 +0000)
commiteb397a9f3871a5bc64f5f8a36dc61a7e16e74541
treed66fd6198524de02bdc1a46804f195b171418d6d
parent60c71046b2b8001213da1f7410300bb22fc0d3ce
lei_mirror: reduce noise on interrupted clones

We don't need git-config or other commands failing loudly.
`git clone' and subcommands it spawns may still spew, but it's no
worse than interrupting `git clone' itself, now.

We accomplish this by localizing $LIVE (formerly %LIVE) and
detecting when its auto-vivification into a hashref goes
out-of-scope during the `DESTRUCT' ${^GLOBAL_PHASE}.

We can't use ${^GLOBAL_PHASE}, yet, either, since it appeared in
Perl 5.14 and we're still migrating slowly to Perl 5.12 before
going to 5.14.
lib/PublicInbox/LeiMirror.pm