BUGFIX: cloniung on startup

This commit is contained in:
Simon Martens
2024-11-13 15:53:47 +01:00
parent 2746a6fdfc
commit 934fe88a8d
2 changed files with 13 additions and 2 deletions

View File

@@ -28,7 +28,18 @@ type KGPZ struct {
}
func (k *KGPZ) Init() {
go k.initRepo()
if k.Config.Debug {
// NOTE: validity checks for poor people, speeding up dev mode:
if _, err := os.Stat(k.Config.FolderPath); err != nil {
k.initRepo()
} else {
go k.initRepo()
}
k.Serialize()
return
}
k.initRepo()
k.Serialize()
}