修改强制更新的方法 (#123)
This commit is contained in:
parent
400009bf44
commit
a88d205eb3
|
@ -104,7 +104,7 @@ export class update extends plugin {
|
||||||
let type = '更新'
|
let type = '更新'
|
||||||
if (this.e.msg.includes('强制')) {
|
if (this.e.msg.includes('强制')) {
|
||||||
type = '强制更新'
|
type = '强制更新'
|
||||||
cm = `git reset --hard origin/master && ${cm}`
|
cm = `git fetch --all && git reset --hard && ${cm}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin) {
|
if (plugin) {
|
||||||
|
|
Loading…
Reference in New Issue