summaryrefslogtreecommitdiff
path: root/t/t3404-rebase-interactive.sh
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2019-10-15 10:25:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-16 01:30:51 (GMT)
commit88a92b6c7372756c862e409a74a22e1ec660b76a (patch)
tree5ee24c4c39be124e7d13941452a0a64670149bcd /t/t3404-rebase-interactive.sh
parentb0a3186140dbc7bd64cbc6ef733386a0f1eb6a4d (diff)
downloadgit-88a92b6c7372756c862e409a74a22e1ec660b76a.zip
git-88a92b6c7372756c862e409a74a22e1ec660b76a.tar.gz
git-88a92b6c7372756c862e409a74a22e1ec660b76a.tar.bz2
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 <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3404-rebase-interactive.sh')
-rwxr-xr-xt/t3404-rebase-interactive.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index d2f1d5b..c26b336 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 &&