builtin/gc.c: ignore cruft packs with `--keep-largest-pack`
[alt-git.git] / t / t9830-git-p4-symlink-dir.sh
blob3fb6960c18fc0c2eb549f09c66d92b3f39822653
1 #!/bin/sh
3 test_description='git p4 symlinked directories'
5 . ./lib-git-p4.sh
7 test_expect_success 'start p4d' '
8 start_p4d
11 test_expect_success 'symlinked directory' '
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 &&
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 ) &&
31 cd "$cli" &&
32 p4 sync &&
33 test -L some/sub/directory/subdir2 &&
34 test_path_is_file some/sub/directory/subdir2/file.t
39 test_done