Skip to content

Commit 5fb47cd

Browse files
cfriedtnashif
authored andcommitted
scripts: check_compliance: un-ignore diff and patch for CheckPatch
Un-ignore diff and patch files for CheckPatch. This was originally added to avoid throwing false-positives when diff and patch files were actually in the repo, since it would incorrectly try to perform code-formatting checks on those files instead of on the content of the commit. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
1 parent 132289e commit 5fb47cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/check_compliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def run(self):
261261
cmd = [checkpatch]
262262

263263
cmd.extend(['--mailback', '--no-tree', '-'])
264-
diff = subprocess.Popen(('git', 'diff', '--no-ext-diff', '--', ':!*.diff', ':!*.patch', COMMIT_RANGE),
264+
diff = subprocess.Popen(('git', 'diff', '--no-ext-diff', COMMIT_RANGE),
265265
stdout=subprocess.PIPE,
266266
cwd=GIT_TOP)
267267
try:

0 commit comments

Comments
 (0)