diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-30 23:04:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-30 23:04:24 +0300 |
commit | a42035fbe4ab23580b81aac0461c6003cf2aed12 (patch) | |
tree | cb61b3f0dd60da09a985313eb964eac7e2d2867b /t | |
parent | 678c787c00d88d06b7dd7335f9341b3164b009f9 (diff) | |
parent | ac9b5475487c95c33ebd66a9c2207be63f07cc30 (diff) |
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-x | t/t0000-basic.sh | 2 |
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" ' |