fix: 添加插件的强制更新 (#168)
This commit is contained in:
parent
cc91a4c84e
commit
f6933be7dc
|
@ -108,7 +108,7 @@ export class update extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin) {
|
if (plugin) {
|
||||||
cm = `git -C ./plugins/${plugin}/ pull --no-rebase`
|
cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull`
|
||||||
}
|
}
|
||||||
|
|
||||||
this.oldCommitId = await this.getcommitId(plugin)
|
this.oldCommitId = await this.getcommitId(plugin)
|
||||||
|
|
Loading…
Reference in New Issue