I use git -p4 to work with git locally and try to send my changes back to the perforce server. His forwarding changes back to the server, which I cannot do.
I have a client configured to include all library dependencies in the client (the following recommendations are in Using git-p4 to install the gforce clone of perforce client )
//depot/libA/... //workspace/libA/...
//depot/libB/... //workspace/libB/...
However, for the main source of the string, I do the following in the workspace directory:
git-p4 clone
This creates and populates the my_project directory in the workspace.
So that code in src can reference libraries.
The problem is that when I run git -p4 rebase, I get the following error:
$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
When I do git -p4 submit (after I make one change and do git commit -a -m "test"):
$ 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
.....
( ?) :
Traceback ( ):
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 at https://git.wiki.kernel.org/index.php/Git-p4_Usage, ,
).