t7406: avoid using test_must_fail for commands other than git

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Elijah Newren
2018-08-08 09:31:07 -07:00
committed by Junio C Hamano
parent 7e9055bb00
commit 9fd1080a2d

View File

@ -606,7 +606,7 @@ test_expect_success 'submodule update - update=none in .git/config but --checkou
git diff --name-only >out && git diff --name-only >out &&
! grep ^submodule$ out && ! grep ^submodule$ out &&
(cd submodule && (cd submodule &&
test_must_fail compare_head ! compare_head
) && ) &&
git config --unset submodule.submodule.update git config --unset submodule.submodule.update
) )