I'm writing a fast-export/fast-import for Plastic SCM but I'm having issues dealing with directories and files containing spaces in their names.
For instance, a git fast-export
of something like:
git mv "new directory" "second directory"
ends up being exported as:
D new directory/hello.c
M 100644 :1 second directory/hello.c
Instead of a "move
" (R)
operation. Same happens with a file with spaces in the name.
Is there a way to handle it correctly?
Does it mean that Git can't handle renames on paths with spaces?
Edited with a real example below:
I've something like this on a commit:
R src/samples/sampledata src/samples/samplebase
* R src/samples/samplebase/Test.Workflow.xml src/samples/samplebase/new/Test.Workflow.xml
and it fails importing saying
fatal: Path src/samples/samplebase/Test.Workflow.xml not in branch
So, I understand it doesn't support a move of a directory and then a move of a file inside it... It is a little bit weird, isn't it?