Skip to content

Commit a42035f

Browse files
committed
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"
2 parents 678c787 + ac9b547 commit a42035f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0000-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ test_expect_success 'writing this tree with --missing-ok' '
11911191
test_expect_success 'git read-tree followed by write-tree should be idempotent' '
11921192
rm -f .git/index &&
11931193
git read-tree $tree &&
1194-
test -f .git/index &&
1194+
test_path_is_file .git/index &&
11951195
newtree=$(git write-tree) &&
11961196
test "$newtree" = "$tree"
11971197
'

0 commit comments

Comments
 (0)