diff options
| author | Marco Elver <elver@google.com> | 2020-08-06 09:11:14 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-08-06 11:49:26 +0200 |
| commit | f94b533a4b8d84b61facdcb97e4f1fb343393ceb (patch) | |
| tree | 59530230ad65be9e61c9b13765a7f3bc3a82a902 /tools/check-commits.sh | |
| parent | 0487ea6f5d997a8363eba0d2eb0ea7a925444555 (diff) | |
tools/check-commits: allow canonical 'git revert' format
Allow the canonical 'git revert' format.
Diffstat (limited to 'tools/check-commits.sh')
| -rwxr-xr-x | tools/check-commits.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-commits.sh b/tools/check-commits.sh index aa06eed5a..42cd72d95 100755 --- a/tools/check-commits.sh +++ b/tools/check-commits.sh @@ -23,7 +23,7 @@ for HASH in ${HASHES}; do ((COMMITS+=1)) SUBJECT=$(git show --format="%s" --no-patch ${HASH}) BODY=$(git show --format="%B" --no-patch ${HASH}) - if ! [[ ${SUBJECT} =~ ^(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [a-z].+[^.]$ ]]; then + if ! [[ ${SUBJECT} =~ ^(Revert \"|(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [a-z].+[^.]$) ]]; then echo "##[error]Wrong commit subject format: '${SUBJECT}'.\ Please use 'main/affected/package: short change description'.\ See docs/contributing.md for details." |
