去除插件强制更新,避免用户修改数据被强制更改回去

This commit is contained in:
ctrlcvs 2023-06-07 19:17:58 +08:00
parent 44a01bf838
commit c022194e4a
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ export class update extends plugin {
} }
if (plugin) { if (plugin) {
cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull` cm = `git -C ./plugins/${plugin}/ pull --no-rebase`
// 请带上脑子来水pr
// cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull`
} }
this.oldCommitId = await this.getcommitId(plugin) this.oldCommitId = await this.getcommitId(plugin)