Git fork

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 <rodrigorsdc@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Rodrigo Carvalho and committed by
Junio C Hamano
bac220e1 2f323bb1

+1 -1
+1 -1
t/t1001-read-tree-m-2way.sh
··· 363 363 test_expect_success 'a/b (untracked) vs a, plus c/d case test.' ' 364 364 read_tree_u_must_fail -u -m "$treeH" "$treeM" && 365 365 git ls-files --stage && 366 - test -f a/b 366 + test_path_is_file a/b 367 367 ' 368 368 369 369 test_expect_success 'read-tree supports the super-prefix' '