summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
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 9a22624..f13750a 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.GoPath) {
+ if me.forge.IsReadOnly(repo) {
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.GoPath) {
+ if me.forge.IsReadOnly(repo) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)