git-p4 submit fails with patch does not apply

前端 未结 2 1808
Happy的楠姐
Happy的楠姐 2021-01-05 07:30

When I do the following:

$ git-p4 submit

I wind up with the following error trace:

error: patch failed: foo/bar/blah.h:1
er         


        
2条回答
  •  攒了一身酷
    2021-01-05 08:01

    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.h
    edit foo/bar/blah.h #change $File: //depot/foo/bar/blah.h$ to $File$
    chmod -w foo/bar/blah.h
    git-p4 submit
    

    This worked.

提交回复
热议问题