summaryrefslogtreecommitdiff
path: root/tools/check_commit.sh
diff options
context:
space:
mode:
authorYogeswaran Umasankar <kd8mbd@gmail.com>2024-01-23 18:18:10 +0000
committerYogeswaran Umasankar <kd8mbd@gmail.com>2024-01-23 18:18:10 +0000
commitad673d549a9ee5ea088fd176a4f0b53f613317cf (patch)
tree4101c64abd9b257617eae435a0c9454158834234 /tools/check_commit.sh
parent3fb9a4f3be0ff3380d6741519b995680900d8ee2 (diff)
parent99bce70f3ca5cea0eb28f5158cfa00803cf6a19a (diff)
Update upstream source from tag 'upstream/20240122'
Update to upstream version '20240122' with Debian dir 8ec9594bab79dc9e415c150c27235783f0c70227
Diffstat (limited to 'tools/check_commit.sh')
-rwxr-xr-xtools/check_commit.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/check_commit.sh b/tools/check_commit.sh
index 5a86e33..84b69db 100755
--- a/tools/check_commit.sh
+++ b/tools/check_commit.sh
@@ -46,12 +46,12 @@ if grep -E "[^_]_\([^\"']" added_lines; then
fail 'Translated strings must be literals!'
fi
-if grep '/cpep8.manifest' added_lines; then
+if git diff ${BASE}.. 'tools/cpep8.manifest' | tail -n +5 | grep -q '^+'; then
fail 'Do not add new files to cpep8.manifest; no longer needed'
fi
-if grep '/cpep8.blacklist' added_lines; then
- fail 'Do not add new files to cpep8.blacklist'
+if git diff ${BASE}.. 'tools/cpep8.blacklist' | tail -n +5 | grep -q '^+'; then
+ fail 'Do not add new files to cpep8.blacklist; fix the code'
fi
grep -i 'license' added_lines > license_lines