drm_hwcomposer: ci: Allow "Revert" as a valid commit subject prefix
We've hit format checking failures due to the commit subject being
prefixed with "Revert ". This seems needlessly restrictive, and
having "drm_hwcomposer: Revert "drm_hwcomposer: blah blah"" feels
redundant.
Change-Id: I7b6d3496289eaabb2ea0f8958f1305c529284cd4
Signed-off-by: John Stultz <jstultz@google.com>
diff --git a/.ci/.gitlab-ci-checkcommit.sh b/.ci/.gitlab-ci-checkcommit.sh
index f821595..3f597c3 100755
--- a/.ci/.gitlab-ci-checkcommit.sh
+++ b/.ci/.gitlab-ci-checkcommit.sh
@@ -42,7 +42,7 @@
git log --pretty='%h' FETCH_HEAD..HEAD | while read h; do
subject=$(git show -s --pretty='%s' "$h")
- if [[ $subject != drm_hwcomposer:* ]]; then
+ if [[ $subject != drm_hwcomposer:* ]] && [[ $subject != Revert* ]]; then
echoerr "Invalid subject prefix: $subject"
exit 1
fi