| test_description='git p4 support for file type change' |
| test_expect_success 'start p4d' ' |
| test_expect_success 'create files' ' |
| p4 client -o | sed "/LineEnd/s/:.*/:unix/" | p4 client -i && |
| text without any funny substitution business |
| second file whose type will change |
| test_expect_success SYMLINKS 'change file to symbolic link' ' |
| git p4 clone --dest="$git" //depot@all && |
| test_when_finished cleanup_git && |
| git config git-p4.skipSubmitEdit true && |
| git commit -m "symlink file1 to file2" && |
| p4 filelog -m 1 //depot/file2 >filelog && |
| test_expect_success SYMLINKS 'change symbolic link to file' ' |
| git p4 clone --dest="$git" //depot@all && |
| test_when_finished cleanup_git && |
| git config git-p4.skipSubmitEdit true && |
| This is another content for the second file. |
| git commit -m "re-write file2" && |
| p4 filelog -m 1 //depot/file2 >filelog && |