location reload
This commit is contained in:
@@ -109,6 +109,11 @@ export class UpdateManager implements Plugin{
|
||||
if(!this.pluginUpdaters[name]) return false
|
||||
const status = await this.pluginUpdaters[name].getStatus()
|
||||
if(!status.exists || status.empty || !status.tags || status.tags.length === 0){
|
||||
if(status.currentTag && !status.latestTag){
|
||||
//git glitches sometimes if you check immediately after clone
|
||||
logger.warn("re-fetching tag for "+name+"...")
|
||||
return await this.startPlugin(name)
|
||||
}
|
||||
logger.error("Bad repo status", name, status)
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user