summaryrefslogtreecommitdiff
path: root/windowRepos.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 20:28:40 -0600
committerJeff Carr <[email protected]>2025-01-07 20:28:40 -0600
commit33c556f95dad4e24e73638be93dbf2c93992d28e (patch)
treefb91a5e5ad5048574fbdab7227d27c4fdc351246 /windowRepos.go
parent51db8c4f0c6b794afefc20ae0c7dfa58c1ef3dcf (diff)
attempting to set pb repo state
Diffstat (limited to 'windowRepos.go')
-rw-r--r--windowRepos.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/windowRepos.go b/windowRepos.go
index bc84893..7d47c1a 100644
--- a/windowRepos.go
+++ b/windowRepos.go
@@ -159,24 +159,25 @@ func (r *repoWindow) mergeAllDevelToMain() bool {
for loop.Scan() {
repo := loop.Next()
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
- log.Info("skipping readonly", repo.GetFullPath())
+ // log.Info("skipping readonly", repo.GetFullPath())
continue
}
if repo.IsDirty() {
log.Info("skipping dirty", repo.GetFullPath())
continue
}
- if repo.GetCurrentBranchName() != repo.GetDevelBranchName() {
- log.Info("not on devel branch", repo.GetFullPath())
+ if repo.GetDevelVersion() != repo.GetUserVersion() {
+ log.Info("devel and user branch are different", repo.GetFullPath())
continue
}
if repo.GetDevelVersion() == repo.GetMasterVersion() {
- log.Info("devel and master branch are the same", repo.GetFullPath())
+ // log.Info("devel and master branch are the same", repo.GetFullPath())
continue
}
if result, err := repo.MergeDevelToMaster(); err == nil {
log.Warn("MERGE WORKED", repo.GetFullPath())
- continue
+ // continue
+ return true
} else {
log.Warn("THINGS FAILED ", repo.GetFullPath())
log.Warn("err", err)