diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2019-01-28 10:27:56 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-28 10:25:39 -0800 |
commit | 891d4a0313edc03f7e2ecb96edec5d30dc182294 (patch) | |
tree | 6094fbc114bab28699cd076c1ccbee65f64744fa /t/t3404-rebase-interactive.sh | |
parent | Git 2.20.1 (diff) | |
download | tgif-891d4a0313edc03f7e2ecb96edec5d30dc182294.tar.xz |
implicit interactive rebase: don't run sequence editor
If GIT_SEQUENCE_EDITOR is set then rebase runs it when executing
implicit interactive rebases which are supposed to appear
non-interactive to the user. Fix this by setting GIT_SEQUENCE_EDITOR=:
rather than GIT_EDITOR=:. A couple of tests relied on the old behavior
so they are updated to work with the new regime.
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-x | t/t3404-rebase-interactive.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index 7a440e08d8..2b961745cc 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -156,6 +156,11 @@ test_expect_success 'rebase -i with exec of inexistent command' ' ! grep "Maybe git-rebase is broken" actual ' +test_expect_success 'implicit interactive rebase does not invoke sequence editor' ' + test_when_finished "git rebase --abort ||:" && + GIT_SEQUENCE_EDITOR="echo bad >" git rebase -x"echo one" @^ +' + test_expect_success 'no changes are a nop' ' git checkout branch2 && set_fake_editor && |