mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-09 15:30:16 -03:00
fix(update): preserve .git on release channel switch, use git checkout tag
Previously, switching to the release channel would delete .git/ and fall back to a ZIP download. This broke update.bat, manual git commands, and CM git-based update detection. Now the release path uses git checkout <latest-tag> when .git exists, and only falls back to ZIP when .git is absent (CM CNR installs). .git is never deleted - the ZIP→nightly path remains a one-way upgrade via _init_git_repo. Also updates locale strings (en, zh-CN, zh-TW, ja) to remove the now-inaccurate "remove the Git repository" wording.
This commit is contained in:
@@ -1782,7 +1782,7 @@
|
||||
"nightlyTitle": "Switch to Nightly Channel",
|
||||
"nightlyMessage": "Switching to Nightly will initialize a Git repository and track the latest main branch commits. Updates will be more frequent but may be unstable. You can switch back to Release at any time.",
|
||||
"releaseTitle": "Switch to Release Channel",
|
||||
"releaseMessage": "Switching to Release will remove the Git repository and install the latest stable release. Future updates will use stable releases only.",
|
||||
"releaseMessage": "Switching to Release will checkout the latest stable release tag. Your Git repository and settings are preserved. You can switch back to Nightly at any time.",
|
||||
"switching": "Switching to {channel} channel...",
|
||||
"completed": "Successfully switched to {channel} channel",
|
||||
"failed": "Failed to switch channel"
|
||||
|
||||
Reference in New Issue
Block a user