summaryrefslogtreecommitdiff
path: root/t/t0021-conversion.sh
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2019-10-15 10:25:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-16 01:30:51 (GMT)
commitb2dbacbddfc40e9715d928dafe3256bb56d91dde (patch)
treebfef89981f71195a8b562b85a475021e9f37a35a /t/t0021-conversion.sh
parent88a92b6c7372756c862e409a74a22e1ec660b76a (diff)
downloadgit-b2dbacbddfc40e9715d928dafe3256bb56d91dde.zip
git-b2dbacbddfc40e9715d928dafe3256bb56d91dde.tar.gz
git-b2dbacbddfc40e9715d928dafe3256bb56d91dde.tar.bz2
t3404: 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. This commit leaves 20 calls to set_fake_editor that are not in subshells as they can safely be removed in the next commit once all the other editor setting is done inside subshells. I have moved the call to set_fake_editor in some tests so it comes immediately before the call to 'git rebase' to avoid moving unrelated commands into the subshell. In one case ('rebase -ix with --autosquash') the call to set_fake_editor is moved past an invocation of 'git rebase'. This is safe as that invocation of 'git rebase' requires EDITOR=: or EDITOR=fake-editor.sh without FAKE_LINES being set which will be the case as the preceding tests either set their editor in a subshell or call set_fake_editor without setting FAKE_LINES. In a one test ('auto-amend only edited commits after "edit"') a call to test_tick are now in a subshell. I think this is OK as it is there to set the date for the next commit which is executed in the same subshell rather than updating GIT_COMMITTER_DATE for later tests (the next test calls test_tick before doing anything else). Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0021-conversion.sh')
0 files changed, 0 insertions, 0 deletions