summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-30 13:04:24 -0700
committerJunio C Hamano <gitster@pobox.com>2020-10-30 13:04:24 -0700
commita42035fbe4ab23580b81aac0461c6003cf2aed12 (patch)
treecb61b3f0dd60da09a985313eb964eac7e2d2867b
parent678c787c00d88d06b7dd7335f9341b3164b009f9 (diff)
parentac9b5475487c95c33ebd66a9c2207be63f07cc30 (diff)
downloadgit-a42035fbe4ab23580b81aac0461c6003cf2aed12.tar.gz
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"
-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"
'