[PR #1205] [CLOSED] update.sh: a rewritten history is not the user's fault, and the messa… #3309

Closed
opened 2026-11-07 14:40:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 100c161 update.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-only cannot 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1205 **Author:** [@elanonimo832](https://github.com/elanonimo832) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/update-sh-diverged-history` --- ### 📝 Commits (1) - [`100c161`](https://github.com/Niko1221/Strata/commit/100c161956d4c9aa24361baa6f8185107d678b12) update.sh: a rewritten history is not the user's fault, and the message said it was ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `update.sh` (+12 -2) </details> ### 📄 Description …ge said it was `git pull --ff-only` cannot 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3309
No description provided.