質問
GIT-P4を使用してGitをローカルで作業し、変更をPerforceサーバーに送信しようとしています。私がやっていないサーバーへの送信の変更。
クライアントがセットアップしているため、クライアントのすべてのライブラリ依存関係が含まれています(に従ってください。 Git-P4を使用して、PerforceクライアントのGitクローンをセットアップします)
//depot/libA/... //workspace/libA/...
//depot/libB/... //workspace/libB/...
ただし、メインラインソースの場合、Workspaceディレクトリで以下を実行しています。
git-p4 clone //depot/my_project
これにより、ワークスペースにmy_projectディレクトリが作成され、入力されます。
SRCのコードがライブラリを参照できるようにします。
問題は、Git-P4 Rebaseを実行すると、次のエラーが発生します。
$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
git -p4を行うとき(単一の変更を行い、git commit -a -m "テスト"を実行した後):
$ git-p4 submit --verbose
Reading pipe: git name-rev HEAD
Reading pipe: git config git-p4.allowSubmit
Reading pipe: git rev-parse --symbolic --remotes
Reading pipe: git rev-parse p4/master
Reading pipe: git notes --ref=git-p4 show 6b75260b956cb72102014783fcfcb2e0da6eb637
Reading pipe: git notes --ref=git-p4 show HEAD~0
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~3
.....
それは永遠にかかります(すべての変更をサーバーに求めていますか?)。
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 1088, in run
self.depotPath = settings['depot-paths'][0]
KeyError: 'depot-paths'
git configを使用してgit-p4オプションをセットアップしていないことに注意してください(wikiで https://git.wiki.kernel.org/index.php/git-p4_usage それが必要であることは言及していないようです)。
解決
クライアント-Specが含まれていますか //depot/my_project/...
?
あるクライアントスペックにライブラリを置き、プロジェクトを別のクライアントに配置できるかもしれません。
多分:
working/
project-git/
.perforce -> P4CONFIG with project-spec
<p4-git project checkout>
.perforce -> P4CONFIG with libs-spec
libraries
perforce/
.perforce -> P4CONFIG with project-spec
<p4 project checkout>
所属していません StackOverflow