X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5407-post-rewrite-hook.sh;h=baa670cea5d8a9d8b4b4578de69917fe76f71d46;hb=018443526875456d335fef2dfbc78bc4de2d340d;hp=552da65a61e8f78d40f8e19cfc5b73696ebcf283;hpb=8577def6fc1dda3f18a284162aba07819fbcbcd4;p=git.git diff --git a/t/t5407-post-rewrite-hook.sh b/t/t5407-post-rewrite-hook.sh index 552da65a6..baa670cea 100755 --- a/t/t5407-post-rewrite-hook.sh +++ b/t/t5407-post-rewrite-hook.sh @@ -10,7 +10,11 @@ test_expect_success 'setup' ' test_commit A foo A && test_commit B foo B && test_commit C foo C && - test_commit D foo D + test_commit D foo D && + git checkout A^0 && + test_commit E bar E && + test_commit F foo F && + git checkout master ' mkdir .git/hooks @@ -79,6 +83,18 @@ EOF verify_hook_input ' +test_expect_success 'git rebase --skip the last one' ' + git reset --hard F && + clear_hook_input && + test_must_fail git rebase --onto D A && + git rebase --skip && + echo rebase >expected.args && + cat >expected.data <