2015-09-11 63 views
2

我正在將幾個Perforce項目遷移到Git。一個是在與過程的18%,雖然失敗:fatal:不支持的命令:Users.Ref「KPLUS」

致命的:不支持的命令:Users.Ref「KPLUS」

它看起來像git的快速導入正試圖執行的文本文件應在何處印刷(我認爲)

快速導入碰撞報告顯示我

fast-import crash report: 
fast-import process: 28327 
parent process  : 28325 
at Fri Sep 11 14:34:26 2015 

fatal: Unsupported command: Users.Ref "KPLUS" 

Most Recent Commands Before Crash 
--------------------------------- 
.... 
.... 
    commit refs/remotes/p4/master 
    committer USERNAME <EMAIL> 1175609377 +0100 
    data <<EOT 
* Users.Ref "KPLUS" 

Active Branch LRU 
----------------- 
    active_branches = 1 cur, 5 max 

    pos clock name 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    1) 714 refs/remotes/p4/master 

Inactive Branches 
----------------- 
refs/remotes/p4/master: 
    status  : active loaded 
    tip commit : 307170cc21264c58ab1943c16f1d2943c1a44f45 
    old tree : 2f45d5c6d9cbe56e5f335f92b21316ad272f3504 
    cur tree : 2f45d5c6d9cbe56e5f335f92b21316ad272f3504 
    commit clock: 714 
    last pack : 0 


Marks 
----- 

------------------- 
END OF CRASH REPORT 

文本是在似乎並沒有很好地形成一個xml文件但我會認爲這應該不重要。

+1

使用--verbose運行git-p4並嘗試識別失敗的更改列表。在更改列表中必須有一些獨特的東西正在破壞它。 – Vitor

回答

1

找到提交消息中的原因。消息中有「EOT」行,導致git-p4腳本將其解釋爲事務結束。所有下一行都被解釋爲可執行的行。將git-p4腳本從使用EOT更改爲EOM解決了這個問題。

+0

這是一個有趣的信息。將它作爲git郵件列表中的錯誤報告會很好。 – Vitor

+0

不確定在哪裏舉報。你有鏈接給我嗎? – JohanKees

+0

不用擔心,我會創建一個小測試用例,並將它自己提交給郵件列表。 – Vitor