7
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-11-21 20:51:24 +00:00
comps/sync-from-upstream

15 lines
448 B
Plaintext
Raw Normal View History

#!/bin/bash
2022-06-22 14:55:38 +00:00
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..."
2023-09-21 17:36:44 +00:00
git format-patch --stdout ${HOWMANY} FETCH_HEAD | sed -e 's/centos-stream-9/rocky-9-lh/ ; s/centos-stream-10/rocky-10-lh/' | git apply
echo "!! DIFF OF CHANGES !!"
git --no-pager diff HEAD
echo "You may now commit and push."