Fix size-check to display more context

When going through the rebase+build loop, the repository state won't
match the exact branch or PR history.  This results in the `Building:
XYZSHA` indications being entirely useless.  Fix this by at least
including the title line of the commit being built.  This will allow a
human to make sense of any size-check failure WRT their view of history.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich
2022-04-21 14:01:42 -04:00
parent cb09c26c65
commit dc02e99d8f

View File

@ -92,9 +92,10 @@ if [[ ! -d $context_dir ]]; then
fi
# This is the original (and primary) purpose of this check: if 'make' fails,
# there is no point in continuing
# there is no point in continuing. Show at least the commit title since
# the ID may not match anything human recognisable.
echo
echo "Building: $(git rev-parse HEAD)"
echo "Building: $(git log -n 1 --no-show-signature --oneline)"
make
# Determine size of each built file.