Skip to content

Commit

Permalink
Add a second testcase for handling invalid strategies in git-merge
Browse files Browse the repository at this point in the history
This one tests '-s index' which is interesting because git-merge-index
is an existing git command but it is not a valid strategy.

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 30, 2008
1 parent 1b1d78f commit dce61e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/t7600-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ test_expect_success 'test option parsing' '
test_must_fail git merge
'

test_expect_success 'reject non-strategy with a git-merge-foo name' '
test_must_fail git merge -s index c1
'

test_expect_success 'merge c0 with c1' '
git reset --hard c0 &&
git merge c1 &&
Expand Down

0 comments on commit dce61e7

Please sign in to comment.