Skip to content

Commit bac220e

Browse files
rodrigorsdcgitster
authored andcommitted
t1001: replace 'test -f' with 'test_path_is_file'
'test_path_is_file' is a modern path checking method in Git's development. Replace the basic shell command 'test -f' with this approach. Signed-off-by: Rodrigo Carvalho <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2f323bb commit bac220e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1001-read-tree-m-2way.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ test_expect_success 'a/b (untracked) vs a case setup.' '
363363
test_expect_success 'a/b (untracked) vs a, plus c/d case test.' '
364364
read_tree_u_must_fail -u -m "$treeH" "$treeM" &&
365365
git ls-files --stage &&
366-
test -f a/b
366+
test_path_is_file a/b
367367
'
368368

369369
test_expect_success 'read-tree supports the super-prefix' '

0 commit comments

Comments
 (0)