From 94ae2b5183fde40acf9c8bc1c14628ca61398f14 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Tue, 20 Aug 2024 15:19:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=85=88fetch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/update.js b/lib/update.js index 8f159d5..8e335f7 100644 --- a/lib/update.js +++ b/lib/update.js @@ -41,6 +41,7 @@ if (Update) { let cmdStr = 'git log -100 --pretty="%h||%cd||%s" --date=format:"%Y-%m-%d %H:%M:%S"'; if (remote) { + await this.exec('git fetch origin main', pluginName); cmdStr = 'git log -100 --pretty="%h||%cd||%s" --date=format:"%Y-%m-%d %H:%M:%S" origin/main'; }