I have a problem with configuring git using git -p4. After completing all the steps from this excellent blog post: http://owenou.com/2011/03/23/git-up-perforce-with-git-p4.html , I am trying to add a new file / modify an existing file in local git.
When trying to reinstall, I get:
$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
After making a change to git and executing
git p4 submit --verbose
which should make changes to the p4 repository, I get 65534 lines of output:
Reading pipe: git notes
Reading pipe: git notes
[...]
Reading pipe: git notes
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'
Needless to say, the changes do not fit into the p4 repository.
source
share