2012-09-11 3 views
0

git-p4를 사용하여 perforce에서 git을 설정하는 데 문제가 있습니다. 이 훌륭한 블로그 게시물 (http://owenou.com/2011/03/23/git-up-perforce-with-git-p4.html)에서 모든 단계를 완료 한 후 로컬 파일 저장소에 새 파일을 추가하거나 기존 파일을 수정하려고합니다. 리베이스하려고 할 때git p4 저장소 경로 오류

내가 얻을 :

$git-p4 rebase 
Traceback (most recent call last): 
    File "/home/user/bin/git-p4", line 2362, in <module> 
    main() 
    File "/home/user/bin/git-p4", line 2357, in main 
    if not cmd.run(args): 
    File "/home/user/bin/git-p4", line 2051, in run 
    sync.run([]) 
    File "/home/user/bin/git-p4", line 2004, in run 
    changes = self.p4.p4ChangesForPaths(self.depotPaths, self.changeRange) 
    File "/home/user/bin/git-p4", line 232, in p4ChangesForPaths 
    assert depotPaths 
AssertionError 

자식에 대한 변경을 커밋하고 P4 저장소에 변경 사항을 추진해야하는
git p4 submit --verbose
를 실행 한 후, I ​​출력의 65534 개 라인을 얻을 :

Reading pipe: git notes --ref=git-p4 show HEAD~1 
Reading pipe: git notes --ref=git-p4 show HEAD~2 
[...] 
Reading pipe: git notes --ref=git-p4 show HEAD~65534 
Traceback (most recent call last): 
    File "/home/wgorski/opt/git-p4/git-p4", line 2754, in <module> 
    main() 
    File "/home/wgorski/opt/git-p4/git-p4", line 2749, in main 
    if not cmd.run(args): 
    File "/home/wgorski/opt/git-p4/git-p4", line 1125, in run 
    self.depotPath = settings['depot-paths'][0] 
KeyError: 'depot-paths' 

변경 사항은 p4 저장소로 푸시되지 않습니다.

답변

3

문제점은 자식 버전입니다. 나는 1.7.1 버전을 설치했고 git-p4 버전은 1.7.1 이상의 버전이 필요하다. 최신 동인 버전으로 업데이트하는 것이 좋습니다. 당신이 필요로하는, 자식-P4를 다운 그레이드 후

git checkout 994ec6ce71cb03786a27a77da77ac33a9e53e090 .

: 자식을 업그레이드하는 옵션이 없으면

,이 같은 메모를 사용하지 않는 개정에 자식-P4 스크립트를 다운 그레이드 할 수 perforce에서 로컬 git repo를 확인하십시오.