]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9830-git-p4-symlink-dir.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t9830-git-p4-symlink-dir.sh
CommitLineData
df8a9e86
LD
1#!/bin/sh
2
3test_description='git p4 symlinked directories'
4
5. ./lib-git-p4.sh
6
7test_expect_success 'start p4d' '
8 start_p4d
9'
10
11test_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 &&
cff4243d 33 test -L some/sub/directory/subdir2 &&
df8a9e86
LD
34 test_path_is_file some/sub/directory/subdir2/file.t
35 )
36
37'
38
df8a9e86 39test_done