diff options
Diffstat (limited to 'list.go')
| -rw-r--r-- | list.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -51,13 +51,20 @@ func verifyPrint(repo *gitpb.Repo) { os.Exit(0) } } - if me.forge.IsReadOnly(repo.GoPath) && !argv.ReadOnly { + if me.forge.IsReadOnly(repo) && !argv.ReadOnly { + if repo.ReadOnly { + return + } + log.Info("readonly flag on repo is wrong", repo.GoPath) return } start := fmt.Sprintf("%-40s %-8s %-20s %-20s %-20s", s["gopath"], s["rtype"], s["cver"], s["mver"], s["cver"]) if s["url"] != "" { end += "(" + s["url"] + ") " } + if repo.ReadOnly { + end += "(readonly) " + } // end += fmt.Sprintf("(%s,%s,%s,%s) ", s["mname"], s["dname"], s["uname"], s["cname"]) log.Info(start, end) } @@ -76,7 +83,7 @@ func verify(repo *gitpb.Repo, s map[string]string) bool { return false } // only verify the master branch name with read-only repos - if me.forge.IsReadOnly(repo.GoPath) { + if me.forge.IsReadOnly(repo) { s["mver"] = repo.GetMasterVersion() return true } |
