3 test_description
='git p4 symlinked directories'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'start p4d' '
12 test_expect_success
'symlinked directory' '
16 p4 add first_file.t &&
17 p4 submit -d "first change"
19 git p4 clone --dest "$git" //depot &&
22 mkdir -p some/sub/directory &&
23 mkdir -p other/subdir2 &&
24 : > other/subdir2/file.t &&
25 (cd some/sub/directory && ln -s ../../../other/subdir2 .) &&
27 git commit -m "symlinks" &&
28 git config git-p4.skipSubmitEdit true &&
34 test -L some/sub/directory/subdir2 &&
35 test_path_is_file some/sub/directory/subdir2/file.t