diff --git a/scripts/upstream.sh b/scripts/upstream.sh index 14a4df46..7c1933f6 100644 --- a/scripts/upstream.sh +++ b/scripts/upstream.sh @@ -91,14 +91,12 @@ start_rebase() { for patch in ../patches/*.patch; do echo "Applying $patch" - if ! git apply --3way "$patch"; then + if ! git am --3way "$patch"; then echo echo "Failed to apply patch. Please run 'make upstream.rebase FROM=$TAG' where '$TAG' allows the patch set to apply cleanly" echo exit 1 fi - patch=${patch#../patches/*-} - git commit -am "${patch%.patch}" done touch ../rebase-in-progress