summaryrefslogtreecommitdiff
path: root/doNormal.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 22:40:51 -0500
committerJeff Carr <[email protected]>2025-10-26 22:40:51 -0500
commit75e2ee9c01f001d5ac01dedd631826de5457fe10 (patch)
tree90bb934c65c51a697418202b34a7697e63fc06a3 /doNormal.go
parent12f4f8b0cb487b8f80b248753ef6dbd2997fb763 (diff)
attempt to set a modeDir
Diffstat (limited to 'doNormal.go')
-rw-r--r--doNormal.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/doNormal.go b/doNormal.go
index e297d04..cf71d34 100644
--- a/doNormal.go
+++ b/doNormal.go
@@ -87,6 +87,7 @@ func doNormalStatus() bool {
var count int
stats := me.forge.RillRepos(checkNormalRepoState)
+ notnormal := gitpb.NewRepos()
for path, stat := range stats {
dur := stat.End.Sub(stat.Start)
if dur > 10*time.Second {
@@ -100,6 +101,7 @@ func doNormalStatus() bool {
log.Info("path deleted while running?", path)
continue
}
+ notnormal.Clone(repo)
if stat.Err == ErrorLocalDevelBranch {
if argv.Fix {
bname := repo.GetDevelBranchName()
@@ -131,6 +133,13 @@ func doNormalStatus() bool {
// log.Info("got path", path, stat.Err)
count += 1
}
+ if notnormal.Len() > 0 {
+ notnormal.SortNamespace()
+ footer := me.forge.PrintDefaultTB(notnormal)
+ log.Info("not normal repos:" + footer)
+ return false
+ }
+
if count > 0 {
log.Info("Some repos are not in a 'normal' state. error count =", count)
log.Info("TODO: list the repos here. forge patch repos?")