Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

crusible: "view as patch" create a patch incompatible with git

Jérôme Pouiller July 11, 2018

Patches generated by "view as patch" has to be applied with "patch -p0" (= there is no directory prefix). However, "git apply" (and most of other tools that work with patches) accept patch that could be applied with "patch -p1" (= one directory prefix). How to fix that?

1 answer

0 votes
Aaron
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2018

Hello Jerome,

 

Welcome to the Atlassian Community!

 

If you take a look at our creating patch files documentation, we don't mention using git apply. We read patch files as git diff > nameofpatchfile.txt and you can upload it to the Crucible review directly. I'm not 100% sure on if you are saying you are unable to upload the patch successfully or if you are expecting a different format. If I didn't answer your question, please help me understand what I have missed.

 

Regards,
Aaron Levinson
Dev Tools Support Engineer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events