🐞 fix: 修复强制更新

This commit is contained in:
zhiyu1998 2023-03-16 00:08:23 +08:00
parent a0216dae4f
commit b5f4b9191f

View File

@ -59,7 +59,7 @@ export class update extends plugin {
let command = `git -C ./plugins/${pluginName}/ pull --no-rebase`;
if (isForce) {
command = `git reset --hard origin/master && ${command}`;
command = `git -C ./plugins/${pluginName}/ checkout . && ${command}`;
}
this.oldCommitId = await this.getCommitId(pluginName);
await e.reply("正在执行更新操作,请稍等");