t3416: set $EDITOR in subshell
commit05ec41855da2ba813e6cfb5fb1fb86aea623addc
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Oct 2022 13:17:39 +0000 (17 13:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2022 18:45:09 +0000 (17 11:45 -0700)
treefbf4be861dc8437f7285c37ab1156c4044d307ac
parent96601a26b4cdb2184b79b63aa670f695f5690183
t3416: set $EDITOR in subshell

As $EDITOR is exported, setting it in one test affects all subsequent
tests. Avoid this by always setting it in a subshell. Also remove a
couple of unnecessary call to set_fake_editor where the editor does
not change the todo list.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3416-rebase-onto-threedots.sh