File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,12 @@ continue_merge () {
53
53
}
54
54
55
55
call_merge () {
56
- cmt=" $( cat " $state_dir /cmt.$1 " ) "
56
+ msgnum=" $1 "
57
+ echo " $msgnum " > " $state_dir /msgnum"
58
+ cmt=" $( cat " $state_dir /cmt.$msgnum " ) "
57
59
echo " $cmt " > " $state_dir /current"
58
60
hd=$( git rev-parse --verify HEAD)
59
61
cmt_name=$( git symbolic-ref HEAD 2> /dev/null || echo HEAD)
60
- msgnum=$( cat " $state_dir /msgnum" )
61
62
eval GITHEAD_$cmt =' "${cmt_name##refs/heads/}~$(($end - $msgnum))"'
62
63
eval GITHEAD_$hd =' $onto_name'
63
64
export GITHEAD_$cmt GITHEAD_$hd
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ test_expect_success setup '
33
33
tr "[a-z]" "[A-Z]" <original >newfile &&
34
34
git add newfile &&
35
35
git commit -a -m"side edits further." &&
36
+ git branch second-side &&
36
37
37
38
tr "[a-m]" "[A-M]" <original >newfile &&
38
39
rm -f original &&
@@ -41,6 +42,7 @@ test_expect_success setup '
41
42
git branch test-rebase side &&
42
43
git branch test-rebase-pick side &&
43
44
git branch test-reference-pick side &&
45
+ git branch test-conflicts side &&
44
46
git checkout -b test-merge side
45
47
'
46
48
@@ -138,4 +140,17 @@ test_expect_success 'rebase -s funny -Xopt' '
138
140
test -f funny.was.run
139
141
'
140
142
143
+ test_expect_success ' rebase --skip works with two conflicts in a row' '
144
+ git checkout second-side &&
145
+ tr "[A-Z]" "[a-z]" <newfile >tmp &&
146
+ mv tmp newfile &&
147
+ git commit -a -m"edit conflicting with side" &&
148
+ tr "[d-f]" "[D-F]" <newfile >tmp &&
149
+ mv tmp newfile &&
150
+ git commit -a -m"another edit conflicting with side" &&
151
+ test_must_fail git rebase --merge test-conflicts &&
152
+ test_must_fail git rebase --skip &&
153
+ git rebase --skip
154
+ '
155
+
141
156
test_done
You can’t perform that action at this time.
0 commit comments