summaryrefslogtreecommitdiff
path: root/doNormal.go
diff options
context:
space:
mode:
Diffstat (limited to 'doNormal.go')
-rw-r--r--doNormal.go10
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")
}