From 48081bed22835f4beb335e5b027ed11a78c919a2 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Thu, 2 Jun 2022 06:38:49 -0700 Subject: [PATCH] add sync script --- sync-from-upstream | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 sync-from-upstream diff --git a/sync-from-upstream b/sync-from-upstream new file mode 100755 index 0000000..059b889 --- /dev/null +++ b/sync-from-upstream @@ -0,0 +1,10 @@ +#!/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."