`git-p4 clone`失败"新提示......不包含......"

Hob*_*ber 8 git perforce git-p4

我在Windows上运行,使用windows p4客户端,并通过Cygwin安装git.p4客户端宣传它的语法在不同平台上的规则性以及所有这些,因此应该是hunky-dory.

So when I go to git-p4 clone --verbose //depot/path/to/source, it lists out all the files in the repository as though they were being checked out, then dies saying

Exception: fast-import failed: warning: Not updating refs/remotes/p4/master (new tip cd601b92da8625c90af05685e450e55b6d19c9e9 does not contain 3a512c9408e3cbeef 94c78dfd7115f81e4a6fd0d)

and concludes with a big block of "git-fast-import statistics". Looking at the error: new tip? Huh? What needs to contain it?

What I'm left with is a .git repo that's a couple of megs (much, much smaller than the full source tree would be). Any ideas?

Ada*_*ruk 3

我也遇到过类似的问题,通常可以追溯到路径、分支名称等中的大小写。不确定 P4,但确保您没有 Master 分支 - 它应该是 master。全线跟随同一个团。另外,避免目录和文件名中含有空格。许多以 git 为中心的工具并不喜欢这样。Gitolite 就是一个例子。它不允许存储库中有空间。