I'm currently using the following command:
git diff --no-prefix -w trunk > my_beautiful_code.patch
but get the following error when I upload the diff in reviewboard:
No valid separator after the filename was found in the diff header
Is there a way to wrangle git into doing the right thing? The reviewboard is looking for the exact svn format, I believe. I could clone the svn repo, apply the patch, then make the patch with svn but that is tedious and I'd like a cleaner workflow...
Thanks!
You can preview your diff by clicking View Diff in the review request action bar (in the top-right of the review request). Uploading a new diff (either using the Update ‣ Update Diff menu item or with rbt post) before publishing will replace the diff.
This is not a real answer but partially explains the problem.
This is caused by an unexpected (from the RB server point of view) diff syntax. You are missing some extra information which is normally present in the subversion RB diffs.
See this bug for a workaround:
https://hellosplat.com/s/beanbag/tickets/1918/
The bug description suggests you could switch to git-svn or you can write a simple find/replace script to have the diff prepared and fixed for you before uploading to RB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With