mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #967] [MERGED] Fix Windows installer shallow release checkout #4861
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4861
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/Pasta-Devs/Marinara-Engine/pull/967
Author: @Xelvanis
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @Xelvanis
Base:
staging← Head:fix/windows-installer-shallow-tag-checkout📝 Commits (1)
1b97551fix: harden Windows installer release checkout📊 Changes
3 files changed (+43 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
win/installer/install.bat(+16 -1)📝
win/installer/installer.nsi(+26 -1)📄 Description
Linked issue
No linked issue yet. This came from a Discord/user support report of the Windows installer failing while updating an existing install to
v1.6.0.Why this change
Users with installer-created shallow release checkouts can hit a confusing Git failure while updating when the fetched release tag resolves to a commit that is not available in the local object database yet. In that state, checkout can fail before the installer reaches dependency install/build, leaving users stuck even though their data folder is untouched.
What changed
origin/main, then the exact resolved commit as a fallback, when the target commit is missing from a shallow checkout.git checkout <commit>after commit verification so the installer still lands in detached HEAD without relying on the--detach <commit>syntax.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm check.pnpm version:check.pnpm guard:installer-artifacts.node scripts/check-windows-installer-layout.mjs.v1.5.9clone by fetchingv1.6.0, resolvingc247b2ebd6f2b6274cb7284e37d6ad382aafa6ac, verifying it withgit cat-file, and checking it out with the patched command.c247b2ebd6f2b6274cb7284e37d6ad382aafa6acis missing before fetchingorigin/main, then verified checkout lands on the expected commit in detached HEAD.makensisis not installed in this environment.Docs and release impact
UI evidence (if applicable)
Not applicable; installer/update script change only.
Summary by CodeRabbit
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.