Skip to content

Commit

Permalink
BaseTools/Scripts: Ignore the CRLF check when upgrade submodule.
Browse files Browse the repository at this point in the history
If the submodule is upgraded, skip the CRLF check as it isn't change for
file.

Signed-off-by: Guomin Jiang <[email protected]>
Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>

Reviewed-by: Bob Feng <[email protected]>
  • Loading branch information
guominjia authored and mergify[bot] committed Jul 24, 2020
1 parent e43d088 commit ff2655d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BaseTools/Scripts/PatchCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def check_added_line(self, line):

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:
Expand Down

0 comments on commit ff2655d

Please sign in to comment.