summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 944019c)
raw | patch | inline | side by side (parent: 944019c)
author | Stephan Beyer <s-beyer@gmx.net> | |
Thu, 15 Jan 2009 12:56:15 +0000 (13:56 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Jan 2009 22:22:42 +0000 (14:22 -0800) |
Add a test case for the bugfix introduced by commit 8beb1f33d
"git-rebase-interactive: do not squash commits on abort".
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"git-rebase-interactive: do not squash commits on abort".
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh | patch | blob | history |
index 7d10a27f1dcb8058f0e3c6180c3d45705fe3b21d..1182b4615b8de7139e16ce6ec35d3eb472b868b7 100755 (executable)
test $parent = $(git rev-parse HEAD^)
'
+test_expect_success 'aborted --continue does not squash commits after "edit"' '
+ old=$(git rev-parse HEAD) &&
+ test_tick &&
+ 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 $old = $(git rev-parse HEAD) &&
+ git rebase --abort
+'
+
test_expect_success 'rebase a detached HEAD' '
grandparent=$(git rev-parse HEAD~2) &&
git checkout $(git rev-parse HEAD) &&