File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ test_expect_success \
5858
5959test_expect_success \
6060 ' git checkout-index conflicting paths.' \
61- ' test -f path0 && test -d path1 && test -f path1/file1'
61+ ' test_path_is_file path0 &&
62+ test_path_is_dir path1 &&
63+ test_path_is_file path1/file1'
6264
6365test_expect_success SYMLINKS ' checkout-index -f twice with --prefix' '
6466 mkdir -p tar/get &&
@@ -127,9 +129,9 @@ test_debug 'show_files $tree2'
127129
128130test_expect_success \
129131 ' checking out conflicting path with -f' \
130- ' test ! -h path2 && test -d path2 &&
131- test ! -h path3 && test -d path3 &&
132- test ! -h path2/file0 && test -f path2/file0 &&
133- test ! -h path3/file1 && test -f path3/file1'
132+ ' test_path_is_dir_not_symlink path2 &&
133+ test_path_is_dir_not_symlink path3 &&
134+ test_path_is_file_not_symlink path2/file0 &&
135+ test_path_is_file_not_symlink path3/file1'
134136
135137test_done
You can’t perform that action at this time.
0 commit comments