3 test_description
='git p4 support for file type change'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'start p4d' '
12 test_expect_success
'create files' '
15 p4 client -o | sed "/LineEnd/s/:.*/:unix/" | p4 client -i &&
17 text without any funny substitution business
20 second file whose type will change
23 p4 submit -d "add files"
27 test_expect_success SYMLINKS
'change file to symbolic link' '
28 git p4 clone --dest="$git" //depot@all &&
29 test_when_finished cleanup_git &&
32 git config git-p4.skipSubmitEdit true &&
37 git commit -m "symlink file1 to file2" &&
39 p4 filelog -m 1 //depot/file2 >filelog &&
40 grep "(symlink)" filelog
44 test_expect_success SYMLINKS
'change symbolic link to file' '
45 git p4 clone --dest="$git" //depot@all &&
46 test_when_finished cleanup_git &&
49 git config git-p4.skipSubmitEdit true &&
53 This is another content for the second file.
56 git commit -m "re-write file2" &&
58 p4 filelog -m 1 //depot/file2 >filelog &&