mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 07:39:16 +01:00
Abort any existing patches when applying
This commit is contained in:
parent
3f493d0785
commit
836578ab76
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ function applyPatch {
|
||||||
git fetch upstream >/dev/null 2>&1
|
git fetch upstream >/dev/null 2>&1
|
||||||
git reset --hard upstream/upstream
|
git reset --hard upstream/upstream
|
||||||
echo " Applying patches to $target..."
|
echo " Applying patches to $target..."
|
||||||
|
git am --abort
|
||||||
git am --3way $basedir/${what}-Patches/*.patch
|
git am --3way $basedir/${what}-Patches/*.patch
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo " Something did not apply cleanly to $target."
|
echo " Something did not apply cleanly to $target."
|
||||||
|
|
Loading…
Reference in a new issue