diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 07:45:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 07:45:13 -0500 |
| commit | 2fccf603358f5c7e3f3403c1ca5e7f50451d88fd (patch) | |
| tree | fdfd168e8da84b3a003521ddb18a88b69734e936 | |
| parent | 2b3bd66ef2ce31fab8b4c209f3deccaa4fb9c117 (diff) | |
other stuffv0.0.138
| -rw-r--r-- | branches.go | 6 | ||||
| -rw-r--r-- | 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 |
