2012-08-14 34 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如果我可以爲其他人嘗試做同樣的事

相關問題