diff options
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 9 |
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?") |
