2012-08-14 36 views
4

我想克隆我的回购的后半部分。它工作正常使用命令:如何从perforce repo中间克隆git-p4?

git-p4 clone --detect-branches //[email protected] 

所以我想运行像下面,但它不会导入文件的方式,并最终失败:

git-p4 clone --detect-branches //[email protected],3000 

我怎样才能得到第二方法正常工作?

更新:输出我得到现在是P4将成为附着在一个无限循环:

current change 32688 
trying: earliest latest 6135ce72f69ce262a6237c98da9ffee652be8b03 
Reading pipe: git rev-list --bisect 6135ce72f69ce262a6237c98da9ffee652be8b03 
Reading pipe: git cat-file commit 6135ce72f69ce262a6237c98da9ffee652be8b03 
+0

第二种方法没有 - 检测分支工作吗? – 2012-08-14 20:14:04

+1

什么是失败消息,导入文件的方式有什么不同? – 2012-08-14 20:17:20

+0

为了仔细检查,我认为你应该在开始和结束范围都有@:“git-p4 clone --detect-branches // depot @ 2000,@ 3000”。这是一个错误的问题,在你尝试的命令中,还是我完全错误? – 2012-08-15 18:48:18

回答

2

好吧,我的主要问题是,我调换起始版本号不正确。

我的客户规格:

View: 
    //depot/main... //HOST/main... 
    //depot/dev... //HOST/dev/...   
    //depot/patch... //HOST/patch... 

和命令:

git p4 clone --verbose --use-client-spec --detect-branches //[email protected],#head repo 

现在,我唯一的问题是,在回购分支有分支的名称前缀,以直接树:

main/file1.txt 
dev/file1.txt 
patch/file1.txt 

现在有效。我更新了我的git-p4脚本版本(v1.7.12-rc3-4-g91e4bfe)来解决这个问题。我会尽力push into mainline如果我可以为其他人尝试做同样的事

相关问题