]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3404: remove unnecessary subshell
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 15 Oct 2019 10:25:27 +0000 (10:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2019 01:30:51 +0000 (10:30 +0900)
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 <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh

index d2f1d5bd235fd529007e4c1f17231289af357bd6..c26b3362ef5e9d6a7a3a26aaa1caa7a05f23270b 100755 (executable)
@@ -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 &&