mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1205] [CLOSED] update.sh: a rewritten history is not the user's fault, and the messa… #3309
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#3309
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1205
Author: @elanonimo832
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/update-sh-diverged-history📝 Commits (1)
100c161update.sh: a rewritten history is not the user's fault, and the message said it was📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
update.sh(+12 -2)📄 Description
…ge said it was
git pull --ff-onlycannot fast-forward onto a branch whose history was rewritten (main force-pushed): the two have no common history. The message that followed blamed the user's own files - "Files you changed here can stop it: git status lists them" - even when the copy had none, which sends them looking for a mistake they did not make. It happened to me on a clean clone right after the 6 October history cleanup.The message now tells the two causes apart: with changed files it says what it always said; with none it explains the rewritten history and gives the one command that moves to it. Nothing outside the tracked files is touched - the model files, this folder's settings and its draft subset are kept.
Tested on a clone left on the old main with origin on the new one, both with and without a changed file: the first case prints the rewritten-history text, the second the original one.
UPDATE.bat carries the same message and the same problem. I left it alone: I have no Windows here to check that a change inside its nested block runs, and a broken UPDATE.bat is worse than a vague message.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.