git-p4 submit fails with patch does not apply git-p4 submit fails with patch does not apply git git

git-p4 submit fails with patch does not apply


Figured it out just after posting this question.

The trick was going in behind P4's back and stripping out the keyword expansion.

chmod +w foo/bar/blah.hedit foo/bar/blah.h #change $File: //depot/foo/bar/blah.h$ to $File$chmod -w foo/bar/blah.hgit-p4 submit

This worked.


This bit me as well. The other option is to change the file type through the GUI tool or the command line so that it's no longer a text+k or text+ko file type (so expansion doesn't happen). If you do that, it will commit OK.