t2016: require the PERL prereq only when necessary
commited922dcab6ac3e2cc0a53f06e9044ba180ea0675
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Nov 2021 14:14:14 +0000 (30 14:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Dec 2021 22:21:08 +0000 (1 14:21 -0800)
treed41465cf879de9562714b621dbed605c1e68b1dd
parentabe6bb3905392d5eb6b01fa6e54d7e784e0522aa
t2016: require the PERL prereq only when necessary

The scripted version of the interactive mode of `git add` still requires
Perl, but the built-in version does not. Let's only require the PERL
prereq if testing the scripted version.

This addresses a long-standing NEEDSWORK added in 35166b1fb54 (t2016:
add a NEEDSWORK about the PERL prerequisite, 2020-10-07).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2016-checkout-patch.sh