我正在尝试将项目从 Perforce 迁移到 Git。我使用git-p4
它作为我的主要工具来为我完成繁重的工作,它默认与 Windows 上的 Git 一起提供:
C:\Program Files\Git\mingw64\libexec\git-core\git-p4
.
在Windows 中将 Perforce 迁移到 Git 之后,我已经到了执行克隆命令的步骤:(git p4 clone <PerforceRepo>
其中 p4 是文件 git-p4.py 的别名)
我不断收到错误:
无效选项:-r。
C:\P4-To-Git>git p4 clone //depot/C:\build\mainline@all .
Importing from //depot/C:/build/mainline@all into .
Reinitialized existing Git repository in C:/P4-To-Git/.git/
Perforce client error:
p4 -h for usage.
Invalid option: -r.
Traceback (most recent call last):
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 3840, in <module>
main()
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 3834, in main
if not cmd.run(args):
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 3706, in run
if not P4Sync.run(self, depotPaths):
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 3546, in run
changes = p4ChangesForPaths(self.depotPaths, self.changeRange, self.changes_block_size)
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 852, in p4ChangesForPaths
changeEnd = p4_last_change()
File "C:\Program Files\Git\mingw64\libexec\git-core\git-p4", line 317, in p4_last_change
return int(results[0]['change'])
KeyError: 'change'
我查看了 p4-git python 文件,没有-r
使用的地方。有什么帮助吗?