[edk2-devel] [edk2-discuss] Best Known Methods for avoiding sending abnormal patch

Laszlo Ersek lersek at redhat.com
Wed Apr 29 19:58:08 UTC 2020


On 04/28/20 13:30, Guomin Jiang wrote:
> Hi All,
> 
> I encounter a error recently, and it will result in abnormal patch, abnormal CI build and abnormal edk2-devel message.
> 
> You can run ``` git config sendemail.transferencoding 8bit``` to avoid the error.
> 
> The detail information as below,
> When I ready a patch and send it to devel at edk2.groups.io<mailto:devel at edk2.groups.io>, will see below abnormal picture.
> 
> From Mail:
> [cid:image001.png at 01D61D85.07F968D0]
> 
> From groups.io
> [cid:image002.png at 01D61D86.BD272250]
> 
> From CI:
> [cid:image003.png at 01D61D86.BD272250]
> 
> The defect happened because of CR+LF is keep in patch and will keep in mail, it seem that the CI or groups system haven't dispose it correctly.
> 
> I get the answers from https://stackoverflow.com/questions/6289001/git-am-format-patch-control-format-of-line-endings, and bit8 can avoid unnecessary CR when send email. It explain the history why import the option as well.
> 
> https://git-scm.com/docs/git-send-email provide the usage for the option.
> 
> Help it is useful for yours

Yes, please refer to edk2 commit a5abd9cc2ceb ("BaseTools/Scripts: Add
sendemail.transferEncoding to SetupGit.py", 2019-12-24).

$ git show -b a5abd9cc2ceb

Thanks
Laszlo


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#58330): https://edk2.groups.io/g/devel/message/58330
Mute This Topic: https://groups.io/mt/73324742/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list