On Wednesday, 26 June 2019 11:37:02 CEST Sven Eckelmann wrote: > On Wednesday, 26 June 2019 11:15:28 CEST Shay Bar wrote: > > To format a patch I am using: "git format-patch origin -s". > > To send it via email to hostap@xxxxxxxxxxxxxxxxxxx, I am using: "git send-email -1". > > I am using git version 1.9.1 with this .gitconfig: > [...] > > Can you please tell me what should I change? [...] > And regarding broken patch format: I would guess that it is caused by some > configuration/filter on the mail server which you use to transmit messages. > You could for example switch to a different server to send such mails to avoid > this. Ah, forgot to tell you that you should also add a "from" line to your sendemail config. [sendemail] from = Shay Bar <cooluser@xxxxxxxxxxxxxxx> Of course with the correct information and not these examples. Not that you start to send mails out with a faked "From:" header. And this also has the benefit that git-send-email will compare the From: line of the patch and the one in the configuration. And when they are different, it will add a secondary from line in the mail body with the original patch From: line and replace the From in the mail header with the one from .gitconfig [1]. git-am will then pick the second From: line when the patch is applied [2]. When it is done correctly, it will ensure that the author mail and the last Signed-off-by line of the mail are equal - even when submitted using a mail server for a completely different domain. Kind regards, Sven [1] https://patchwork.ozlabs.org/patch/1114908/ [2] https://w1.fi/cgit/hostap/commit/?id=29f85561894d4799a902656549a5847e4febabd3
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap