]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0000: use test_path_is_file instead of "test -f"
authorCaleb Tillman <caleb.tillman@gmail.com>
Sat, 17 Oct 2020 02:43:53 +0000 (02:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Oct 2020 19:55:25 +0000 (12:55 -0700)
Signed-off-by: Caleb Tillman <caleb.tillman@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0000-basic.sh

index 923281af93981d5b6f67ace54f41849b44ecf0b1..eb99892a877609875be019585bc9693c3b400e6f 100755 (executable)
@@ -1191,7 +1191,7 @@ test_expect_success 'writing this tree with --missing-ok' '
 test_expect_success 'git read-tree followed by write-tree should be idempotent' '
        rm -f .git/index &&
        git read-tree $tree &&
-       test -f .git/index &&
+       test_path_is_file .git/index &&
        newtree=$(git write-tree) &&
        test "$newtree" = "$tree"
 '