From b5f4b9191ffba8d1e88ebba201d63320ee028842 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Thu, 16 Mar 2023 00:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/update.js b/apps/update.js index d25e271..1e71c33 100644 --- a/apps/update.js +++ b/apps/update.js @@ -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("正在执行更新操作,请稍等");