diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 23:50:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 23:50:43 +0200 |
commit | 0ce5a698c6f775c2cc18de9eb62d558b1b85d752 (patch) | |
tree | fc06e3b923f1bbf2f358bca41d4cdb9d699753e3 /t/t3404-rebase-interactive.sh | |
parent | Merge branch 'sb/submodule-move-head-error-msg' (diff) | |
parent | git-rebase: make --allow-empty-message the default (diff) | |
download | git-0ce5a698c6f775c2cc18de9eb62d558b1b85d752.tar.xz git-0ce5a698c6f775c2cc18de9eb62d558b1b85d752.zip |
Merge branch 'en/rebase-consistency'
"git rebase" behaved slightly differently depending on which one of
the three backends gets used; this has been documented and an
effort to make them more uniform has begun.
* en/rebase-consistency:
git-rebase: make --allow-empty-message the default
t3401: add directory rename testcases for rebase and am
git-rebase.txt: document behavioral differences between modes
directory-rename-detection.txt: technical docs on abilities and limitations
git-rebase.txt: address confusion between --no-ff vs --force-rebase
git-rebase: error out when incompatible options passed
t3422: new testcases for checking when incompatible options passed
git-rebase.sh: update help messages a bit
git-rebase.txt: document incompatible options
Diffstat (limited to 't/t3404-rebase-interactive.sh')
-rwxr-xr-x | t/t3404-rebase-interactive.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index d392160ba9..c5d39e2b23 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -553,15 +553,16 @@ test_expect_success '--continue tries to commit, even for "edit"' ' ' test_expect_success 'aborted --continue does not squash commits after "edit"' ' + test_when_finished "git rebase --abort" && old=$(git rev-parse HEAD) && test_tick && set_fake_editor && FAKE_LINES="edit 1" git rebase -i HEAD^ && echo "edited again" > file7 && git add file7 && - test_must_fail env FAKE_COMMIT_MESSAGE=" " git rebase --continue && - test $old = $(git rev-parse HEAD) && - git rebase --abort + echo all the things >>conflict && + test_must_fail git rebase --continue && + test $old = $(git rev-parse HEAD) ' test_expect_success 'auto-amend only edited commits after "edit"' ' |