From dce61e728b89611109e76cbc9fa897fe49d7869d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 30 Jul 2008 01:17:01 +0200 Subject: [PATCH] Add a second testcase for handling invalid strategies in git-merge 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 Signed-off-by: Junio C Hamano --- t/t7600-merge.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh index 5eeb6c2b27..0329aee2cd 100755 --- a/t/t7600-merge.sh +++ b/t/t7600-merge.sh @@ -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 && -- 2.11.4.GIT