summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-28 19:26:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-12-28 19:26:59 (GMT)
commit5765870d531913310e4a1980aa6256003d1decae (patch)
treea7c3a54305bc8ae5c08bb4bd88134c7e2d73a085 /t
parentf3bb8b4b8452f1b7add220e787ef56c737ceff6a (diff)
parentef88ad238779c4eadba9f179146fe213f047b89f (diff)
downloadgit-5765870d531913310e4a1980aa6256003d1decae.zip
git-5765870d531913310e4a1980aa6256003d1decae.tar.gz
git-5765870d531913310e4a1980aa6256003d1decae.tar.bz2
Merge branch 'jc/maint-rebase-rewrite-last-skip'
* jc/maint-rebase-rewrite-last-skip: rebase --skip: correctly wrap-up when skipping the last patch
Diffstat (limited to 't')
-rwxr-xr-xt/t5407-post-rewrite-hook.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/t/t5407-post-rewrite-hook.sh b/t/t5407-post-rewrite-hook.sh
index 552da65..baa670c 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 <<EOF &&
+$(git rev-parse E) $(git rev-parse HEAD)
+EOF
+ verify_hook_input
+'
+
test_expect_success 'git rebase -m' '
git reset --hard D &&
clear_hook_input &&