Ports: Keep [...] prefixes while importing patches

This stops us from mangling our LLVM patch names and titles when using
`./package.sh dev`, as they like to put their category names in square
brackets.
This commit is contained in:
Tim Schumacher 2022-09-16 19:59:41 +02:00 committed by Ali Mohammad Pur
parent e6ef366859
commit 4d29489705
Notes: sideshowbarker 2024-07-17 06:52:57 +09:00

View file

@ -734,7 +734,7 @@ do_dev() {
fi
echo "Importing patch $(basename "${patch}")..."
git am --keep-cr "$patch" >/dev/null 2>&1 || {
git am --keep-cr --keep-non-patch "$patch" >/dev/null 2>&1 || {
git am --abort >/dev/null 2>&1 || true
if git apply < $patch; then
git add -A