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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.