* [PATCH v2 1/1] BaseTools/Scripts: Ignore the CRLF check when upgrade submodule.
@ 2020-07-22 9:09 Guomin Jiang
0 siblings, 0 replies; only message in thread
From: Guomin Jiang @ 2020-07-22 9:09 UTC (permalink / raw)
To: devel; +Cc: Bob Feng, Liming Gao
If the submodule is upgraded, it will not end with the CRLF. it make no
sense that check the submodule upgrade.
Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
BaseTools/Scripts/PatchCheck.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py
index 7db0775d14d1..ca0849b77bbe 100755
--- a/BaseTools/Scripts/PatchCheck.py
+++ b/BaseTools/Scripts/PatchCheck.py
@@ -502,7 +502,7 @@ class GitDiffCheck:
stripped = line.rstrip()
- if self.force_crlf and eol != '\r\n':
+ if self.force_crlf and eol != '\r\n' and (line.find('Subproject commit') == -1):
self.added_line_error('Line ending (%s) is not CRLF' % repr(eol),
line)
if self.force_notabs and '\t' in line:
--
2.25.1.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-22 9:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-22 9:09 [PATCH v2 1/1] BaseTools/Scripts: Ignore the CRLF check when upgrade submodule Guomin Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox