From 1d83dde411b72dd4f831e6a61c6c6c71c289cc91 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 21 Mar 2016 21:40:18 -0400 Subject: [PATCH] Fix rebuild patches for real this time. --- rebuildPatches.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rebuildPatches.sh b/rebuildPatches.sh index dfcccf6d11..003269f6ac 100755 --- a/rebuildPatches.sh +++ b/rebuildPatches.sh @@ -29,9 +29,12 @@ function savePatches { what_name=$(basename $what) target=$2 echo "Formatting patches for $what..." + + cd "$basedir/${what_name}-Patches/" + rm -rf *.patch + cd "$basedir/$target" - rm -rf "$basedir/${what_name}-Patches/*.patch" git format-patch --no-stat -N -o "$basedir/${what_name}-Patches/" upstream/upstream >/dev/null cd "$basedir" git add -A "$basedir/${what_name}-Patches"