I'm trying to apply a patch, which I took from http://www.winehq.org/pipermail/wine-devel/2014-May/104356.html. I copied it into a text editor, and saved it as my.patch
(I needed to fix the email, it had been obfuscated).
I tried to apply it with Git, but I'm getting this error:
sashoalm@sashoalm-VirtualBox:~/Desktop/wine-git$ git am --signoff <my.patch
previous rebase directory /home/sashoalm/Desktop/wine-git/.git/rebase-apply still exists but mbox given.
This cryptic error message gives me no idea what's wrong or what I need to do to make it work. What does this error mean? And how do I fix it?
Ok, it turned out I needed to delete the directory
.git/rebase-apply
. It works after that (or at least gives me different errors, saying the email is wrong again). I still have no idea what the error actually means or why there was an error.Edit: As the comments below suggest,
git rebase --abort
might be a better way to fix the problem, but I have not tested it.worked for me, but
git rebase --abort
did not.What happened: I tried to apply a patch but it had been corrupted (likely by Gmail copy pasting in body):
And Git said:
Note how git gives out the solution:
To restore the original branch and stop patching, run "git am --abort".
Then I obviously ignored the message, and tried a fixed version immediately:
and got the error.