| test_description='git-p4 transparency to shell metachars in filenames' |
| test_expect_success 'start p4d' ' |
| test_expect_success 'init depot' ' |
| test_expect_success 'shell metachars in filenames' ' |
| "$GITP4" clone --dest="$git" //depot && |
| test_when_finished cleanup_git && |
| git config git-p4.skipSubmitEditCheck true && |
| echo f2 >"file with spaces" && |
| git add "file with spaces" && |
| git commit -m "add files" && |
| P4EDITOR=touch "$GITP4" submit |
| test -e "file with spaces" && |
| test_expect_success 'deleting with shell metachars' ' |
| "$GITP4" clone --dest="$git" //depot && |
| test_when_finished cleanup_git && |
| git config git-p4.skipSubmitEditCheck true && |
| git rm file\ with\ spaces && |
| git commit -m "remove files" && |
| P4EDITOR=touch "$GITP4" submit |
| test ! -e "file with spaces" && |
| test_expect_success 'kill p4d' ' |