File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -577,13 +577,6 @@ then
577
577
resume=
578
578
fi
579
579
580
- if test " $this " -gt " $last "
581
- then
582
- say Nothing to do.
583
- rm -fr " $dotest "
584
- exit
585
- fi
586
-
587
580
while test " $this " -le " $last "
588
581
do
589
582
msgnum=` printf " %0${prec} d" $this `
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ test_expect_success 'setup' '
10
10
test_commit A foo A &&
11
11
test_commit B foo B &&
12
12
test_commit C foo C &&
13
- test_commit D foo D
13
+ test_commit D foo D &&
14
+ git checkout A^0 &&
15
+ test_commit E bar E &&
16
+ test_commit F foo F &&
17
+ git checkout master
14
18
'
15
19
16
20
mkdir .git/hooks
79
83
verify_hook_input
80
84
'
81
85
86
+ test_expect_success ' git rebase --skip the last one' '
87
+ git reset --hard F &&
88
+ clear_hook_input &&
89
+ test_must_fail git rebase --onto D A &&
90
+ git rebase --skip &&
91
+ echo rebase >expected.args &&
92
+ cat >expected.data <<EOF &&
93
+ $(git rev-parse E) $(git rev-parse HEAD)
94
+ EOF
95
+ verify_hook_input
96
+ '
97
+
82
98
test_expect_success ' git rebase -m' '
83
99
git reset --hard D &&
84
100
clear_hook_input &&
You can’t perform that action at this time.
0 commit comments