From: Phillip Wood Date: Tue, 15 Oct 2019 10:25:27 +0000 (+0000) Subject: t3404: remove unnecessary subshell X-Git-Tag: v2.25.0-rc0~148^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88a92b6c7372756c862e409a74a22e1ec660b76a;p=thirdparty%2Fgit.git t3404: remove unnecessary subshell Neither of the commands executed in the subshell change any shell variables or the current directory so there is no need for them to be executed in a subshell. Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano --- diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index d2f1d5bd23..c26b3362ef 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -945,10 +945,8 @@ test_expect_success C_LOCALE_OUTPUT 'rebase -ix with --autosquash' ' git add bis.txt && git commit -m "fixup! two_exec" && set_fake_editor && - ( - git checkout -b autosquash_actual && - git rebase -i --exec "git show HEAD" --autosquash HEAD~4 >actual - ) && + git checkout -b autosquash_actual && + git rebase -i --exec "git show HEAD" --autosquash HEAD~4 >actual && git checkout autosquash && ( git checkout -b autosquash_expected &&