Commits
30 30 | if [ "$?" != "0" ]; then |
31 31 | echo " Something did not apply cleanly to $target." |
32 32 | echo " Please review above details and finish the apply then" |
33 33 | echo " save the changes with rebuildPatches.sh" |
34 34 | exit 1 |
35 35 | else |
36 36 | echo " Patches applied cleanly to $target" |
37 37 | fi |
38 38 | } |
39 39 | |
40 - | applyPatch Bukkit Spigot-API origin/master && applyPatch CraftBukkit Spigot-Server origin/patched |
40 + | cd ../Bukkit |
41 + | hash=$(git rev-parse HEAD) |
42 + | git branch -f spigot "$hash" |
43 + | |
44 + | applyPatch Bukkit Spigot-API origin/spigot && applyPatch CraftBukkit Spigot-Server origin/patched |