summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkleaf/impl/checkpatch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kleaf/impl/checkpatch.sh b/kleaf/impl/checkpatch.sh
index 068bd1d..68c6549 100755
--- a/kleaf/impl/checkpatch.sh
+++ b/kleaf/impl/checkpatch.sh
@@ -138,6 +138,11 @@ if [[ "$SUBJECT" =~ ^UPSTREAM|^BACKPORT|^FROMGIT ]]; then
exit 0
fi
+if [[ "$SUBJECT" =~ ^Revert ]]; then
+ echo "Not linting revert patches for "${DIR}". Skipping this check."
+ exit 0
+fi
+
# Now run checkpatch.pl on DIR: GIT_SHA1
# Below is the equivalent of build/kernel/static_analysis/checkpatch.sh