diff options
| author | Rodrigo Carvalho <rodrigorsdc@gmail.com> | 2025-05-10 20:09:09 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-12 10:09:21 -0700 |
| commit | bac220e154994c3d68089d6860de9f78ce5a01f9 (patch) | |
| tree | 902085c649b8b7e91b5068f331a69c4f24685823 | |
| parent | Git 2.44.3 (diff) | |
| download | git-bac220e154994c3d68089d6860de9f78ce5a01f9.tar.gz git-bac220e154994c3d68089d6860de9f78ce5a01f9.zip | |
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>
| -rwxr-xr-x | t/t1001-read-tree-m-2way.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1001-read-tree-m-2way.sh b/t/t1001-read-tree-m-2way.sh index 88c524f655..59b8e56058 100755 --- a/t/t1001-read-tree-m-2way.sh +++ b/t/t1001-read-tree-m-2way.sh @@ -363,7 +363,7 @@ test_expect_success 'a/b (untracked) vs a case setup.' ' test_expect_success 'a/b (untracked) vs a, plus c/d case test.' ' read_tree_u_must_fail -u -m "$treeH" "$treeM" && git ls-files --stage && - test -f a/b + test_path_is_file a/b ' test_expect_success 'read-tree supports the super-prefix' ' |
