ensure sync-from-upstream catches lh

This commit is contained in:
Louis Abel 2022-08-05 11:35:28 -07:00
parent aceaccea7a
commit 96ec5dead1
Signed by: label
GPG Key ID: B37E62D143879B36

View File

@ -4,6 +4,12 @@ if [ -z $1 ]; then
HOWMANY="-1" HOWMANY="-1"
fi fi
BRANCH=$(git branch --show-current)
if [[ ! "${BRANCH}" =~ "lh" ]]; then
echo "Not a lookahead branch."
exit 1
fi
echo "Fetching from upstream" echo "Fetching from upstream"
git fetch https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git centos-9-stream git fetch https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git centos-9-stream
echo "Formatting patch and applying..." echo "Formatting patch and applying..."