Merge branch 'style-check-fix' into 'main'

ci: Fix printing info message at end of run-style-check-diff.sh

See merge request GNOME/glib!3735
This commit is contained in:
Michael Catanzaro 2023-11-30 00:38:13 +00:00
commit 438f59b071

View File

@ -2,17 +2,15 @@
set -e
ancestor_horizon=28 # days (4 weeks)
# Wrap everything in a subshell so we can propagate the exit status.
exit_status=0
(
source .gitlab-ci/search-common-ancestor.sh
git diff -U0 --no-color "${newest_common_ancestor_sha}" | .gitlab-ci/clang-format-diff.py -binary "clang-format-14" -p1
)
exit_status=$?
) || exit_status=$?
# The style check is not infallible. The clang-format configuration cannot
# perfectly describe GLibs coding style: in particular, it cannot align