mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1276] UPDATE.bat cannot update existing checkouts after the main history rewrite #524
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#524
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nirvash on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1276
Problem
The recent force-update of
mainprevents existing checkouts from updating through the normalUPDATE.batworkflow.The rewritten history appears to remove Claude-related commit trailers. Regardless of the reason for that cleanup, existing users need a documented migration path.
I do not normally use UPDATE.bat and did not run it to reproduce this failure. I encountered the rewritten history while updating manually, then inspected UPDATE.bat to check the impact on users of the supplied updater. The behavior described below follows from the verified Git history and the script's control flow.
Evidence
My checkout was on the previous
mainat:6f32ec070f23ced9f50e704d854d775da52591abNo local commits or rebases were made. After fetching, Git recorded:
The new upstream tip at the time of checking was:
82f46a8c8f475f001ad76d92f58f4a4f8ffb0253git merge-basefinds no common ancestor between these histories.This is not limited to a few recent commits: the old history and the corresponding rewritten history each contain 845 commits, with no shared commit IDs. The root commit IDs also differ.
For example, old commit
6f32ec0and its rewritten counterparta1641e9have identical file trees, author dates and subjects. The latter omits the former's Claude-related trailers and has a different parent. This describes an observed difference, not a confirmed explanation from the maintainer.Effect on UPDATE.bat
UPDATE.batrunsgit pull --ff-onlyand exits if that command fails.Consequently, affected checkouts cannot fast-forward, and the script never reaches
setup.py --update. The source, engine and Python packages remain at their previous versions.The script's failure message says:
That message does not explain the upstream history rewrite or provide recovery instructions. Users may mistake the failure for a problem with their local changes, or simply stop trying and remain on an outdated version. Re-running UPDATE.bat does not resolve it.
The script does report a failure; it does not literally report "no updates available." The concern is that existing users lose the normal update path without actionable migration guidance.
Requested improvement
git reset --hardorgit clean, as users may have local modifications and custom configurations.Workaround used
I preserved the old branch and local changes, created a new branch tracking the rewritten
origin/main, and then ransetup.py --update.Related: #475, which introduced UPDATE.bat.
@Niko1221 commented on GitHub (Oct 7, 2026):
Fixed in 0.1.40.2: UPDATE.bat and update.sh now notice a clone that is on the history from before 2026-10-06 (no commit in common with origin/main). When no tracked file of yours is edited they keep your old commits in a branch called pre-cleanup-backup and move the clone to the new history; when something is edited they print the two commands and change nothing. Your models, settings and engine are untracked files and are never touched. The scripts you already have (0.1.40 and older) cannot do this themselves, so run these once in the Strata folder and use UPDATE.bat as usual afterwards (run
git stashfirst ifgit statuslists edited files):Thanks for the report, and to elanonimo832 for PR #1205, whose message change this builds on.
@djmaze commented on GitHub (Oct 7, 2026):
Why was history rewritten?
@nirvash commented on GitHub (Oct 7, 2026):
Thanks for addressing this in 0.1.40.2 and documenting the recovery steps. Preserving the old history in pre-cleanup-backup and stopping when tracked files have local edits addresses the main concern about protecting user work. Much appreciated!