fix: 添加插件的强制更新 (#168)

This commit is contained in:
sameu 2023-06-07 04:52:47 +08:00 committed by GitHub
parent cc91a4c84e
commit f6933be7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export class update extends plugin {
} }
if (plugin) { if (plugin) {
cm = `git -C ./plugins/${plugin}/ pull --no-rebase` 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)