From 2fccf603358f5c7e3f3403c1ca5e7f50451d88fd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Sep 2025 07:45:13 -0500 Subject: [PATCH] other stuff --- branches.go | 6 +++--- forgeConfig.config.go | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/branches.go b/branches.go index 0a13361..aea2caa 100644 --- a/branches.go +++ b/branches.go @@ -81,7 +81,7 @@ func (f *Forge) DoAllCheckoutMaster() error { f.RillFuncError(rillCheckoutMaster) count := f.RillReload() if count != 0 { - f.ConfigSave() + config.SetChanged("repos", true) } total, count, nope, err := f.IsEverythingOnMaster() @@ -160,7 +160,7 @@ func (f *Forge) DoAllCheckoutUser(force bool) error { f.RillFuncError(rillCheckoutUser) count := f.RillReload() if count != 0 { - f.ConfigSave() + config.SetChanged("repos", true) } total, count, nope, err := f.IsEverythingOnUser() @@ -259,7 +259,7 @@ func (f *Forge) DoAllCheckoutDevel(force bool) error { f.RillFuncError(rillCheckoutDevel) count := f.RillReload() if count != 0 { - f.ConfigSave() + config.SetChanged("repos", true) } total, count, nope, err := f.IsEverythingOnDevel() diff --git a/forgeConfig.config.go b/forgeConfig.config.go index 6b7f084..b5080a6 100644 --- a/forgeConfig.config.go +++ b/forgeConfig.config.go @@ -28,7 +28,9 @@ func (cfg *ForgeConfigs) ConfigSave() error { } func (cfg *ForgeConfigs) DumpENV() { - log.Infof("RepoPB file: cfg.ReposPB=%s FORGE_REPOSPB=%s\n", cfg.ReposPB, os.Getenv("FORGE_REPOSPB")) + if cfg.ReposPB != os.Getenv("FORGE_REPOSPB") { + log.Infof("RepoPB file problem: cfg.ReposPB=%s != FORGE_REPOSPB=%s\n", cfg.ReposPB, os.Getenv("FORGE_REPOSPB")) + } } // load the ~/.config/forge/ files