mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-15 12:47:48 +00:00
fix: 检查更新先fetch
This commit is contained in:
parent
18f24f87bb
commit
94ae2b5183
1 changed files with 1 additions and 0 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue