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