diff options
| author | Jeff Carr <[email protected]> | 2025-10-05 03:55:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-05 03:55:00 -0500 |
| commit | 1ead07061c0826a3f220e7632f3be2b57b3c2506 (patch) | |
| tree | 613421c17f91b0376eaa5eefa6b13c942629bb6b /doNormal.go | |
| parent | 8f71f42d4668921d85a80b2bb6a71cb5e4eee1d9 (diff) | |
various cleanups
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doNormal.go b/doNormal.go index 242a7be..0a92a32 100644 --- a/doNormal.go +++ b/doNormal.go @@ -25,6 +25,7 @@ func doNormal() bool { var count int stats := me.forge.RillRepos(checkNormalRepoState) + for path, stat := range stats { dur := stat.End.Sub(stat.Start) if dur > 10*time.Second { @@ -148,8 +149,13 @@ func checkNormalRepoState(repo *gitpb.Repo) error { err = log.Errorf("now on user branch") } - if me.forge.Config.IsReadOnly(repo.GetGoPath()) != repo.GetReadOnly() { - repo.ReadOnly = me.forge.Config.IsReadOnly(repo.GetGoPath()) + if repo.Namespace != repo.GetGoPath() { + log.Info(repo.Namespace, repo.GetGoPath()) + } + + // verify read-only + if me.forge.Config.IsReadOnly(repo.GetNamespace()) != repo.GetReadOnly() { + repo.ReadOnly = me.forge.Config.IsReadOnly(repo.GetNamespace()) log.Info("damnit", repo.FullPath) err = log.Errorf("readonly bit wrong") } |
