3 test_description
='git p4 support for file type change'
7 test_expect_success
'start p4d' '
11 test_expect_success
'create files' '
14 p4 client -o | sed "/LineEnd/s/:.*/:unix/" | p4 client -i &&
16 text without any funny substitution business
19 second file whose type will change
22 p4 submit -d "add files"
26 test_expect_success SYMLINKS
'change file to symbolic link' '
27 git p4 clone --dest="$git" //depot@all &&
28 test_when_finished cleanup_git &&
31 git config git-p4.skipSubmitEdit true &&
36 git commit -m "symlink file1 to file2" &&
38 p4 filelog -m 1 //depot/file2 >filelog &&
39 grep "(symlink)" filelog
43 test_expect_success SYMLINKS
'change symbolic link to file' '
44 git p4 clone --dest="$git" //depot@all &&
45 test_when_finished cleanup_git &&
48 git config git-p4.skipSubmitEdit true &&
52 This is another content for the second file.
55 git commit -m "re-write file2" &&
57 p4 filelog -m 1 //depot/file2 >filelog &&
62 test_expect_success
'kill p4d' '