chore: do 'git stash' before hard reset

Just in case the user made local changes and then runs the bat we don't wanna have it be irrecoverably lost.
This commit is contained in:
Sainan 2025-03-23 16:40:48 +01:00
parent aa12708738
commit c3d7ae33c2

View File

@ -3,6 +3,7 @@
echo Updating SpaceNinjaServer... echo Updating SpaceNinjaServer...
git config remote.origin.url https://openwf.io/SpaceNinjaServer.git git config remote.origin.url https://openwf.io/SpaceNinjaServer.git
git fetch --prune git fetch --prune
git stash
git reset --hard origin/main git reset --hard origin/main
if exist static\data\0\ ( if exist static\data\0\ (