]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1307: reorder `nongit test_must_fail`
authorDenton Liu <liu.denton@gmail.com>
Fri, 20 Dec 2019 18:15:56 +0000 (10:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2019 19:30:44 +0000 (11:30 -0800)
In the future, we plan on only allowing `test_must_fail` to work on a
restricted subset of commands, including `git`. Reorder the commands so
that `nongit` comes before `test_must_fail`. This way, `test_must_fail`
operates on a git command.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1307-config-blob.sh

index 37dc689d8c98fd776895e1ce6d18faee092001d3..002e6d3388e242c56800da6b9640819c90ed5615 100755 (executable)
@@ -74,7 +74,7 @@ test_expect_success 'can parse blob ending with CR' '
 '
 
 test_expect_success 'config --blob outside of a repository is an error' '
-       test_must_fail nongit git config --blob=foo --list
+       nongit test_must_fail git config --blob=foo --list
 '
 
 test_done