From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web12.15991.1595414010099675437 for ; Wed, 22 Jul 2020 03:33:30 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: guomin.jiang@intel.com) IronPort-SDR: 3t6MSG+1nwATPurhKA6tCnHZgbyTeEf8KddGdeqYWVwztrk5Z09He6XG7VSHFNxFnzLX8gpZD7 UQ9dRXrG3IVA== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="137808376" X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="137808376" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 03:33:29 -0700 IronPort-SDR: vb4d104KMi/6P6sc7ZIUGKNkGTmmdeGs10fVgXZiSrMC47ZeXiwCoVoVnxo3Z/Oy2Ghv7cC4eV MF17T8RAs/Tw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="310579486" Received: from guominji-mobl.ccr.corp.intel.com ([10.238.13.140]) by fmsmga004.fm.intel.com with ESMTP; 22 Jul 2020 03:33:27 -0700 From: "Guomin Jiang" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao Subject: [PATCH v3 1/1] BaseTools/Scripts: Ignore the CRLF check when upgrade submodule. Date: Wed, 22 Jul 2020 18:33:26 +0800 Message-Id: <20200722103326.1311-1-guomin.jiang@intel.com> X-Mailer: git-send-email 2.25.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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