Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9830-git-p4-symlink-dir.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9830-git-p4-symlink-dir.sh` 39 lines ยท 746 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git p4 symlinked directories' 4 5 . ./lib-git-p4.sh 6 7 test_expect_success 'start p4d' ' 8 start_p4d 9 ' 10 11 test_expect_success 'symlinked directory' ' 12 ( 13 cd "$cli" && 14 : >first_file.t && 15 p4 add first_file.t && 16 p4 submit -d "first change" 17 ) && 18 git p4 clone --dest "$git" //depot && 19 ( 20 cd "$git" && 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 .) && 25 git add some other && 26 git commit -m "symlinks" && 27 git config git-p4.skipSubmitEdit true && 28 git p4 submit -v 29 ) && 30 ( 31 cd "$cli" && 32 p4 sync && 33 test -L some/sub/directory/subdir2 && 34 test_path_is_file some/sub/directory/subdir2/file.t 35 ) 36 37 ' 38 39 test_done