diff options
| author | Yogeswaran Umasankar <kd8mbd@gmail.com> | 2024-01-23 18:18:04 +0000 |
|---|---|---|
| committer | Yogeswaran Umasankar <kd8mbd@gmail.com> | 2024-01-23 18:18:04 +0000 |
| commit | 99bce70f3ca5cea0eb28f5158cfa00803cf6a19a (patch) | |
| tree | 0bc7364205b908656b4b2d520626bbc251a4bbb5 /tools/check_commit.sh | |
| parent | 691b1b410562075e0d76033f5c8ddaf1da7344d0 (diff) | |
New upstream version 20240122
Diffstat (limited to 'tools/check_commit.sh')
| -rwxr-xr-x | tools/check_commit.sh | 6 |
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 |
