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'; }