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?
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.
Dev Tools Support Engineer
We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event