3 test_description
='git p4 symlinked directories'
7 test_expect_success
'start p4d' '
11 test_expect_success
'symlinked directory' '
15 p4 add first_file.t &&
16 p4 submit -d "first change"
18 git p4 clone --dest "$git" //depot &&
21 mkdir -p some/sub/directory &&
22 mkdir -p other/subdir2 &&
23 : > other/subdir2/file.t &&
24 (cd some/sub/directory && ln -s ../../../other/subdir2 .) &&
26 git commit -m "symlinks" &&
27 git config git-p4.skipSubmitEdit true &&
33 test -L some/sub/directory/subdir2
34 test_path_is_file some/sub/directory/subdir2/file.t
39 test_expect_success
'kill p4d' '