diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-30 13:04:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-30 13:04:24 -0700 |
commit | a42035fbe4ab23580b81aac0461c6003cf2aed12 (patch) | |
tree | cb61b3f0dd60da09a985313eb964eac7e2d2867b | |
parent | Merge branch 'en/t7518-unflake' (diff) | |
parent | t0000: use test_path_is_file instead of "test -f" (diff) | |
download | tgif-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"
-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" ' |