Skip to content

Commit 88a92b6

Browse files
phillipwoodgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b0a3186 commit 88a92b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

t/t3404-rebase-interactive.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -945,10 +945,8 @@ test_expect_success C_LOCALE_OUTPUT 'rebase -ix with --autosquash' '
945945
git add bis.txt &&
946946
git commit -m "fixup! two_exec" &&
947947
set_fake_editor &&
948-
(
949-
git checkout -b autosquash_actual &&
950-
git rebase -i --exec "git show HEAD" --autosquash HEAD~4 >actual
951-
) &&
948+
git checkout -b autosquash_actual &&
949+
git rebase -i --exec "git show HEAD" --autosquash HEAD~4 >actual &&
952950
git checkout autosquash &&
953951
(
954952
git checkout -b autosquash_expected &&

0 commit comments

Comments
 (0)