chore: use 'git checkout -f' instead of 'git reset --hard' to avoid loss

This commit is contained in:
Sainan 2025-06-01 12:16:16 +02:00
parent 8f02bd1509
commit b0499a62aa
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
echo Updating SpaceNinjaServer...
git fetch --prune
git stash
git reset --hard origin/main
git checkout -f origin/main
if exist static\data\0\ (
echo Updating stripped assets...

View File

@ -3,7 +3,7 @@
echo "Updating SpaceNinjaServer..."
git fetch --prune
git stash
git reset --hard origin/main
git checkout -f origin/main
if [ -d "static/data/0/" ]; then
echo "Updating stripped assets..."