@ -859,11 +859,7 @@ test_expect_success 'detect typo in branch name when using --edit-description' '
@@ -859,11 +859,7 @@ test_expect_success 'detect typo in branch name when using --edit-description' '
@ -102,12 +102,8 @@ test_expect_success 'rebase -i with the exec command runs from tree root' '
@@ -102,12 +102,8 @@ test_expect_success 'rebase -i with the exec command runs from tree root' '
test_expect_success 'rebase -i with the exec command checks tree cleanness' '
git checkout master &&
(
set_fake_editor &&
FAKE_LINES="exec_echo_foo_>file1 1" &&
export FAKE_LINES &&
test_must_fail git rebase -i HEAD^
) &&
test_must_fail env FAKE_LINES="exec_echo_foo_>file1 1" git rebase -i HEAD^ &&
test_cmp_rev master^ HEAD &&
git reset --hard &&
git rebase --continue
@ -116,12 +112,9 @@ test_expect_success 'rebase -i with the exec command checks tree cleanness' '
@@ -116,12 +112,9 @@ test_expect_success 'rebase -i with the exec command checks tree cleanness' '
test_expect_success 'rebase -i with exec of inexistent command' '
@ -528,11 +505,7 @@ test_expect_success 'aborted --continue does not squash commits after "edit"' '
@@ -528,11 +505,7 @@ test_expect_success 'aborted --continue does not squash commits after "edit"' '
FAKE_LINES="edit 1" git rebase -i HEAD^ &&
echo "edited again" > file7 &&
git add file7 &&
(
FAKE_COMMIT_MESSAGE=" " &&
export FAKE_COMMIT_MESSAGE &&
test_must_fail git rebase --continue
) &&
test_must_fail env FAKE_COMMIT_MESSAGE=" " git rebase --continue &&
test $old = $(git rev-parse HEAD) &&
git rebase --abort
'
@ -547,11 +520,7 @@ test_expect_success 'auto-amend only edited commits after "edit"' '
@@ -547,11 +520,7 @@ test_expect_success 'auto-amend only edited commits after "edit"' '
echo "and again" > file7 &&
git add file7 &&
test_tick &&
(
FAKE_COMMIT_MESSAGE="and again" &&
export FAKE_COMMIT_MESSAGE &&
test_must_fail git rebase --continue
) &&
test_must_fail env FAKE_COMMIT_MESSAGE="and again" git rebase --continue &&
test_must_fail env FAKE_LINES="2" git rebase -i --root &&
git cat-file commit HEAD | grep "^tree 4b825dc642cb" &&
git rebase --abort
'
@ -1042,11 +1003,7 @@ test_expect_success 'rebase -i error on commits with \ in message' '
@@ -1042,11 +1003,7 @@ test_expect_success 'rebase -i error on commits with \ in message' '
@ -146,11 +146,7 @@ test_expect_success 'no color when stdout is a regular file' '
@@ -146,11 +146,7 @@ test_expect_success 'no color when stdout is a regular file' '
test_expect_success TTY 'color when writing to a pager' '
rm -f paginated.out &&
test_config color.ui auto &&
(
TERM=vt100 &&
export TERM &&
test_terminal git log
) &&
test_terminal env TERM=vt100 git log &&
colorful paginated.out
'
@ -158,11 +154,7 @@ test_expect_success TTY 'colors are suppressed by color.pager' '
@@ -158,11 +154,7 @@ test_expect_success TTY 'colors are suppressed by color.pager' '
rm -f paginated.out &&
test_config color.ui auto &&
test_config color.pager false &&
(
TERM=vt100 &&
export TERM &&
test_terminal git log
) &&
test_terminal env TERM=vt100 git log &&
! colorful paginated.out
'
@ -181,11 +173,7 @@ test_expect_success 'color when writing to a file intended for a pager' '
@@ -181,11 +173,7 @@ test_expect_success 'color when writing to a file intended for a pager' '
test_expect_success TTY 'colors are sent to pager for external commands' '