]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/PatchCheck.py
BaseTools/Scripts: Ignore the CRLF check when upgrade submodule.
[mirror_edk2.git] / BaseTools / Scripts / PatchCheck.py
index 7db0775d14d1295517d929842755eecbf5c3efc2..ca0849b77bbee5ecca9409fd81f9e18a6bbbf881 100755 (executable)
@@ -502,7 +502,7 @@ class GitDiffCheck:
 \r
         stripped = line.rstrip()\r
 \r
-        if self.force_crlf and eol != '\r\n':\r
+        if self.force_crlf and eol != '\r\n' and (line.find('Subproject commit') == -1):\r
             self.added_line_error('Line ending (%s) is not CRLF' % repr(eol),\r
                                   line)\r
         if self.force_notabs and '\t' in line:\r