Skip to content

Commit 0346e32

Browse files
committed
Merge branch 'cc/reset-more'
* cc/reset-more: t7111: fix bad HEAD in tests with unmerged entries
2 parents 1f73566 + 6f53c3b commit 0346e32

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

t/t7111-reset-table.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ test_expect_success 'setting up branches to test with unmerged entries' '
7373
git checkout branch1 &&
7474
test_commit B1 file1 &&
7575
git checkout branch2 &&
76-
test_commit B2 file1
76+
test_commit B file1
7777
'
7878

7979
while read W1 I1 H1 T opt W2 I2 H2
8080
do
8181
test_expect_success "check: $W1 $I1 $H1 $T --$opt $W2 $I2 $H2" '
82-
git reset --hard B2 &&
82+
git reset --hard B &&
8383
test_must_fail git merge branch1 &&
8484
cat file1 >X_file1 &&
8585
if test "$W2" != "XXXXX"
@@ -100,14 +100,14 @@ do
100100
fi
101101
'
102102
done <<\EOF
103-
X U C D soft XXXXX
104-
X U C D mixed X D D
105-
X U C D hard D D D
106-
X U C D merge D D D
107-
X U C C soft XXXXX
108-
X U C C mixed X C C
109-
X U C C hard C C C
110-
X U C C merge C C C
103+
X U B C soft XXXXX
104+
X U B C mixed X C C
105+
X U B C hard C C C
106+
X U B C merge C C C
107+
X U B B soft XXXXX
108+
X U B B mixed X B B
109+
X U B B hard B B B
110+
X U B B merge B B B
111111
EOF
112112

113113
test_done

0 commit comments

Comments
 (0)