summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-04 15:36:28 -0600
committerJeff Carr <[email protected]>2024-12-04 15:36:28 -0600
commit2d22e4132d9ef50527b1e8efa9951748ff78e189 (patch)
tree244a2163a29520140c5107087b15e6f83817ddff /init.go
parent73756cf5fa8d9853f06f94c49b3657aed6cdb947 (diff)
function name cleanupsv0.22.32v0.22.31v0.22.30
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.go b/init.go
index f13750a..7f29701 100644
--- a/init.go
+++ b/init.go
@@ -24,7 +24,7 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
repos := me.forge.Repos.SortByGoPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.IsReadOnly(repo) {
+ if me.forge.Config.IsReadOnly(repo.GoPath) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
@@ -50,7 +50,7 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
repos := me.forge.Repos.SortByGoPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.IsReadOnly(repo) {
+ if me.forge.Config.IsReadOnly(repo.GoPath) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)