summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-13 00:52:44 -0500
committerJeff Carr <[email protected]>2025-09-13 00:52:44 -0500
commitbc9509e43b3a0cbf24e3e354ffb840f4fdffe6b3 (patch)
tree595d299265c1654bf5d04b41b17c22f3979a40ba /init.go
parentb21a47434e2806d7cfb882e319f9fd5a5d9867d8 (diff)
work on a better/faster Reload()
Diffstat (limited to 'init.go')
-rw-r--r--init.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.go b/init.go
index 6446775..49f04a0 100644
--- a/init.go
+++ b/init.go
@@ -92,6 +92,13 @@ func (f *Forge) Exit() {
if f.configSave {
f.ConfigSave()
}
+ if f.Repos != nil {
+ if config.HasChanged("repos") {
+ if err := f.Repos.ConfigSave(f.Config.ReposPB); err != nil {
+ log.Info("forge.Repos.ConfigSave() error", err)
+ }
+ }
+ }
// log.Info("forge.Exit() ok")
os.Exit(0)
}