当源存储库路径包含空格时,如何使用gitp4将存储库从Perforce迁移到GitHub



我们正在从Perfoce迁移到GitHub,我们正在使用git-p4迁移我们的具有完整历史的解决方案。然而,有些解决方案的源路径中有空格。

例如//开发/定制/项目/API1/JOE SOAP/Proposal12345

注意JOE和SOAP之间的空格。

无论我们做了什么尝试,我们都无法使迁移成功。

以下是我们尝试的与相关输出的组合

git p4 clone //Development/Custom/Projects/API1/JOE SOAP/Proposal12345@all
Importing from //Development/Custom/Projects/API1/JOE into SOAP/CR-13016@all
Reinitialized existing Git repository in C:/CommandLineTools/temp/SOAP/CR-13016@all/.git/
Doing initial import of //Development/Custom/Projects/API1/JOE/ from revision #head into refs/remotes/p4/master
p4 returned an error: //Development/Custom/Projects/API1/JOE/...#head - no such file(s).
fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:            0 (         0 duplicates                  )
blobs  :            0 (         0 duplicates          0 deltas of          0 attempts)
trees  :            0 (         0 duplicates          0 deltas of          0 attempts)
commits:            0 (         0 duplicates          0 deltas of          0 attempts)
tags   :            0 (         0 duplicates          0 deltas of          0 attempts)
Total branches:           0 (         0 loads     )
marks:           1024 (         0 unique    )
atoms:              0
Memory total:          2399 KiB
pools:          2048 KiB
objects:           351 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =      65536
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 35184372088832
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------
git p4 clone //Development/Custom/Projects/API1/JOE SOAP/Proposal12345@all
Importing from //Development/Custom/Projects/API1/JOE/ into SOAP/CR-13016@all
Reinitialized existing Git repository in C:/CommandLineTools/temp/SOAP/CR-13016@all/.git/
Doing initial import of //Development/Custom/Projects/API1/JOE/ from revision #head into refs/remotes/p4/master
p4 returned an error: //Development/Custom/Projects/API1/JOE/...#head - no such file(s).
fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:            0 (         0 duplicates                  )
blobs  :            0 (         0 duplicates          0 deltas of          0 attempts)
trees  :            0 (         0 duplicates          0 deltas of          0 attempts)
commits:            0 (         0 duplicates          0 deltas of          0 attempts)
tags   :            0 (         0 duplicates          0 deltas of          0 attempts)
Total branches:           0 (         0 loads     )
marks:           1024 (         0 unique    )
atoms:              0
Memory total:          2399 KiB
pools:          2048 KiB
objects:           351 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =      65536
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 35184372088832
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------
git p4 clone "//Development/Custom/Projects/API1/JOE SOAP/Proposal12345@all"
Importing from //Development/Custom/Projects/API1/JOE SOAP/CR-13016@all into CR-13016
Reinitialized existing Git repository in C:/CommandLineTools/temp/CR-13016/.git/
Command failed: p4 -d "C:CommandLineToolstempCR-13016" changes //Development/Custom/Projects/API1/JOE SOAP/CR-13016/...
fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:            0 (         0 duplicates                  )
blobs  :            0 (         0 duplicates          0 deltas of          0 attempts)
trees  :            0 (         0 duplicates          0 deltas of          0 attempts)
commits:            0 (         0 duplicates          0 deltas of          0 attempts)
tags   :            0 (         0 duplicates          0 deltas of          0 attempts)
Total branches:           0 (         0 loads     )
marks:           1024 (         0 unique    )
atoms:              0
Memory total:          2399 KiB
pools:          2048 KiB
objects:           351 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =      65536
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 35184372088832
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------
git p4 clone "//Development/Custom/Projects/API1/JOE SOAP/Proposal12345@all"
Importing from //Development/Custom/Projects/API1/JOE/ SOAP/CR-13016@all into CR-13016
Reinitialized existing Git repository in C:/CommandLineTools/temp/CR-13016/.git/
Command failed: p4 -d "C:CommandLineToolstempCR-13016" changes //Development/Custom/Projects/API1/JOE/ SOAP/CR-13016/...
fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:            0 (         0 duplicates                  )
blobs  :            0 (         0 duplicates          0 deltas of          0 attempts)
trees  :            0 (         0 duplicates          0 deltas of          0 attempts)
commits:            0 (         0 duplicates          0 deltas of          0 attempts)
tags   :            0 (         0 duplicates          0 deltas of          0 attempts)
Total branches:           0 (         0 loads     )
marks:           1024 (         0 unique    )
atoms:              0
Memory total:          2399 KiB
pools:          2048 KiB
objects:           351 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =      65536
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 35184372088832
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------

有人找到办法绕过这个吗?

我不知道问题出在哪里,我希望第三种选择能起作用。

也许可以在Linux上尝试一下?

也可以尝试直接运行p4 -d "C:CommandLineToolstempCR-13016" changes //Development/Custom/Projects/API1/JOE SOAP/CR-13016/...,看看什么失败了?

最新更新