]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/PatchCheck: Disable text conversion in 'git show'
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 1 Aug 2019 23:03:46 +0000 (16:03 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Thu, 8 Aug 2019 05:12:02 +0000 (22:12 -0700)
commit96603b4f02b93d7725e5d6c1701b502d6b072ab3
treec0091c5b921f3ad0f351df55cd49c0a7c02392a4
parent1eeb5ff160278e58ef9cbaef70c4d6800bebdc55
BaseTools/PatchCheck: Disable text conversion in 'git show'

https://bugzilla.tianocore.org/show_bug.cgi?id=2044

'git show' is used to extract the patch contents for analysis.
Add the flag '--no-textconv' to the 'git show' command to
disable the conversion from some binary file types to text
content.

Without this change, binary files such as .pdf files are
converted to text in the show command and PatchCheck complains
that the wrong line endings are used in the patch.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
BaseTools/Scripts/PatchCheck.py