t5612: don't use `test_must_fail test_cmp`
commit0813dd28b948787ed61b3052d36043d9a8348edc
authorDenton Liu <liu.denton@gmail.com>
Thu, 26 Mar 2020 08:27:53 +0000 (26 04:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 17:56:40 +0000 (27 10:56 -0700)
treed747a716b7ee8eb663040f746f1478af46464e84
parent85db348895ff30dd933d0a58701c97d28f65ade1
t5612: don't use `test_must_fail test_cmp`

The test_must_fail function should only be used for git commands since
we should assume that external commands work sanely. Since test_cmp() just
wraps an external command, replace `test_must_fail test_cmp` with
`! test_cmp`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5612-clone-refspec.sh