mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-04-13 09:32:09 +00:00
BUILDTOOLS-561: Improve support for paths with special characters
This commit is contained in:
parent
5fc0fb4e4c
commit
a93cbb1e98
2 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ applyPatch() {
|
|||
|
||||
echo " Applying patches to $target..."
|
||||
git am --abort >/dev/null 2>&1
|
||||
git am --3way "$basedir/${what}-Patches/"*.patch
|
||||
git am --3way "../${what}-Patches/"*.patch
|
||||
if [ "$?" != "0" ]; then
|
||||
echo " Something did not apply cleanly to $target."
|
||||
echo " Please review above details and finish the apply then"
|
||||
|
|
|
@ -29,11 +29,11 @@ savePatches() {
|
|||
target=$2
|
||||
branch=$3
|
||||
cd "$basedir/$target"
|
||||
git format-patch --no-stat -N -o "$basedir/${what}-Patches/" $branch
|
||||
git format-patch --no-stat -N -o "../${what}-Patches/" $branch
|
||||
cd "$basedir"
|
||||
git add -A "$basedir/${what}-Patches"
|
||||
git add -A "${what}-Patches"
|
||||
if [ "$clean" != "clean" ]; then
|
||||
cleanupPatches "$basedir/${what}-Patches"
|
||||
cleanupPatches "${what}-Patches"
|
||||
fi
|
||||
echo " Patches saved for $what to $what-Patches/"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue