summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--branches.go6
-rw-r--r--forgeConfig.config.go4
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