From 4ad9e4251436d0ad64cefaf4f801fc8cae06617e Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 19 Oct 2026 15:58:31 +0300 Subject: [PATCH] Update to most recent Pillow tag Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- update-pillow-tag.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/update-pillow-tag.sh b/update-pillow-tag.sh index e4f78fbe..a83e65ba 100755 --- a/update-pillow-tag.sh +++ b/update-pillow-tag.sh @@ -2,16 +2,20 @@ set -e # exit on error -if [ $# -eq 0 ]; then - echo "Usage: update-pillow-tag.sh [[release tag]]" - exit -fi - git checkout main git submodule update --init Pillow cd Pillow -git fetch --all -git checkout $1 +git fetch --all --tags + +if [ $# -eq 0 ]; then + # Default to the most recently released tag + tag=$(git tag --list '[0-9]*.[0-9]*.[0-9]*' --sort=-creatordate | head -n 1) + echo "No release tag given, using the newest one: $tag" +else + tag=$1 +fi + +git checkout "$tag" cd .. -git commit -m "Pillow -> $1" Pillow +git commit -m "Pillow -> $tag" Pillow git push