我正在使用“git-p4”脚本从 p4 迁移到 GIT。由于大量更改列表(约 500 万),克隆操作失败。所以我正在尝试执行增量导入操作:我尝试先克隆然后同步操作。我用小改动列表进行了测试。
第一次运行:
git p4 clone //depot/f1/f2/f3/ere@17888479,17918050 -v
第二次运行:
git p4 sync //depot/f1/f2/f3/ere@17918051,17918064 -v
错误:
Traceback (most recent call last):
File "C:\Program Files\Git\mingw64/libexec/git-core\git-p4", line 3677, in <module>
main()
File "C:\Program Files\Git\mingw64/libexec/git-core\git-p4", line 3671, in main
if not cmd.run(args):
File "C:\Program Files\Git\mingw64/libexec/git-core\git-p4", line 3429, in run
die("fast-import failed: %s" % self.gitError.read())
File "C:\Program Files\Git\mingw64/libexec/git-core\git-p4", line 122, in die
raise Exception(msg)
Exception: fast-import failed: warning: Not updating refs/remotes/p4/master (new tip 85c94d84335bb1441a7f959b384729b2a4d633f4 does not contain 3222bdc29799d1fe5fff91c36524481b1469f1d9)