]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/Scripts/PatchCheck.py: Remove submodule false positives
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 23 Jan 2020 23:07:42 +0000 (15:07 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 24 Jan 2020 18:30:13 +0000 (18:30 +0000)
commitc8b8157e126ae2fb6f65842677251d300ceff104
tree70ae30d4e2f294eddbc72376ca87edee59dfd93f
parent9a1f14ad721bbcd833ec5108944c44a502392f03
BaseTools/Scripts/PatchCheck.py: Remove submodule false positives

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

Update PatchCheck to not enforce no tabs and not enforce CR/LF
line endings for .gitmodules files.  These files are updated by
git when a git submodule command is used and the updates by git
use tab characters and LF line endings.

Also update patch check to not enforce CR/LF line endings for
patch lines that create a submodule directory.  These patch
lines use LF line endings.  The git submodule directory is
added as a new file with attributes 160000 that can be detected
by looking for the pattern "new file mode 160000".

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