Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-03-26 11:27:53 +0300
committerJunio C Hamano <gitster@pobox.com>2020-03-27 20:56:40 +0300
commit0813dd28b948787ed61b3052d36043d9a8348edc (patch)
treed747a716b7ee8eb663040f746f1478af46464e84 /t/t5612-clone-refspec.sh
parent85db348895ff30dd933d0a58701c97d28f65ade1 (diff)
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>
Diffstat (limited to 't/t5612-clone-refspec.sh')
-rwxr-xr-xt/t5612-clone-refspec.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5612-clone-refspec.sh b/t/t5612-clone-refspec.sh
index e36ac01661..28373e715a 100755
--- a/t/t5612-clone-refspec.sh
+++ b/t/t5612-clone-refspec.sh
@@ -87,7 +87,7 @@ test_expect_success 'by default no tags will be kept updated' '
git for-each-ref refs/tags >../actual
) &&
git for-each-ref refs/tags >expect &&
- test_must_fail test_cmp expect actual &&
+ ! test_cmp expect actual &&
test_line_count = 2 actual
'