7
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-05-31 23:30:16 +00:00
comps/sync-from-upstream
2022-06-22 07:55:38 -07:00

15 lines
414 B
Bash
Executable File

#!/bin/bash
HOWMANY="-$1"
if [ -z $1 ]; then
HOWMANY="-1"
fi
echo "Fetching from upstream"
git fetch https://gitlab.com/redhat/centos-stream/release-engineering/comps.git main
echo "Formatting patch and applying..."
git format-patch --stdout ${HOWMANY} FETCH_HEAD | sed -e 's/centos-stream-9/rocky-9-lh/' | git apply
echo "!! DIFF OF CHANGES !!"
git --no-pager diff HEAD
echo "You may now commit and push."