Git format and quick export spaces

I am writing fast export / quick import for Plastic SCM , but I am having problems with directories and files containing spaces in their names.

For example, a git fast-exportof something like:

git mv "new directory" "second directory"

exported as:

D new directory/hello.c
M 100644 :1 second directory/hello.c

Instead of operation " move" (R). The same thing happens with a file with spaces in the name.

Is there any way to handle this correctly?
Does this mean that Git cannot handle renaming on paths with spaces?

Edited with a real example below:

I have something like this in commit:

  R src/samples/sampledata src/samples/samplebase
* R src/samples/samplebase/Test.Workflow.xml src/samples/samplebase/new/Test.Workflow.xml

and he could not import the saying

fatal: Path src/samples/samplebase/Test.Workflow.xml not in branch

, , , ... , ?

+5
1

git fast-import ":

() () . Git , .

, , , .

, Git , blob (.. ).


:

  • , Git, () , (.. , ).
  • Git git mv.

2011 OP gmane.
(2017) Git Windows (git-for-windows/git issue 908).

+2

All Articles