summaryrefslogtreecommitdiff
path: root/list.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 13:23:12 -0600
committerJeff Carr <[email protected]>2024-12-03 13:23:12 -0600
commitd1cc3bd09a78bc83f8fa50af267c15bebac880df (patch)
tree40599463d3416d959b790211a5d69d62b9dc8762 /list.go
parentc2bd3b64be97cb5a58e9b3271339b5f75d8ccc0a (diff)
on the way to somewherev0.22.5
Diffstat (limited to 'list.go')
-rw-r--r--list.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/list.go b/list.go
index 4e4cca4..da733ad 100644
--- a/list.go
+++ b/list.go
@@ -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
}