Skip to content

Commit 8ec0dd6

Browse files
Miklos Vajnagitster
authored andcommitted
t6021: add a new test for git-merge-resolve
It should fail properly if there are multiple merge bases, but there were no test for this till now. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4393c23 commit 8ec0dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t6021-merge-criss-cross.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,8 @@ EOF
8989

9090
test_expect_success 'Criss-cross merge result' 'cmp file file-expect'
9191

92+
test_expect_success 'Criss-cross merge fails (-s resolve)' \
93+
'git reset --hard A^ &&
94+
test_must_fail git merge -s resolve -m "final merge" B'
95+
9296
test_done

0 commit comments

Comments
 (0)