Skip to content

Commit ac9b547

Browse files
Caleb Tillmangitster
authored andcommitted
t0000: use test_path_is_file instead of "test -f"
Signed-off-by: Caleb Tillman <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 430cabb commit ac9b547

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)