pungi-rocky/sync-from-upstream
2022-06-02 06:38:49 -07:00

11 lines
358 B
Bash
Executable File

#!/bin/bash
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..."
git format-patch --stdout -1 FETCH_HEAD | sed -e 's|centos/|rocky/|' | git apply
echo "!! DIFF OF CHANGES !!"
git --no-pager diff HEAD
echo "You may now commit and push."