From ff2655d1a4ce8f2c85b1a5f09b85fb4f51fe13f1 Mon Sep 17 00:00:00 2001 From: "Jiang, Guomin" Date: Wed, 22 Jul 2020 18:33:26 +0800 Subject: BaseTools/Scripts: Ignore the CRLF check when upgrade submodule. If the submodule is upgraded, skip the CRLF check as it isn't change for file. Signed-off-by: Guomin Jiang Cc: Bob Feng Cc: Liming Gao Reviewed-by: Bob Feng --- BaseTools/Scripts/PatchCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools') diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index 7db0775d14..ca0849b77b 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: -- cgit v1.2.3