summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-10-30 13:04:24 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-30 13:04:24 -0700
commita42035fbe4ab23580b81aac0461c6003cf2aed12 (patch)
treecb61b3f0dd60da09a985313eb964eac7e2d2867b /t
parentMerge branch 'en/t7518-unflake' (diff)
parentt0000: use test_path_is_file instead of "test -f" (diff)
downloadtgif-a42035fbe4ab23580b81aac0461c6003cf2aed12.tar.xz
Merge branch 'ct/t0000-use-test-path-is-file'
Micro clean-up of a test script. * ct/t0000-use-test-path-is-file: t0000: use test_path_is_file instead of "test -f"
Diffstat (limited to 't')
-rwxr-xr-xt/t0000-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 923281af93..eb99892a87 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -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"
'