Skip to content

Commit

Permalink
t6021: add a new test for git-merge-resolve
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Jul 13, 2008
1 parent 4393c23 commit 8ec0dd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/t6021-merge-criss-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ EOF

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

test_expect_success 'Criss-cross merge fails (-s resolve)' \
'git reset --hard A^ &&
test_must_fail git merge -s resolve -m "final merge" B'

test_done

0 comments on commit 8ec0dd6

Please sign in to comment.