fix(setup): git reset mission repo to break infinite loop caused by syncing patches

This commit is contained in:
2025-12-28 16:34:41 +01:00
parent fa67d4133f
commit 5494314b19

View File

@@ -61,6 +61,8 @@ if [ ! -d "$HOME_DIR/missions" ]; then
else
print_info "Missions folder already exists, updating..."
cd "$HOME_DIR/missions"
# Reset local changes (our patches) to ensure we get fresh real scripts for the sync
sudo -u "$USER_NAME" git reset --hard HEAD
sudo -u "$USER_NAME" git pull || true
fi