summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.go b/init.go
index 7f29701..397fb23 100644
--- a/init.go
+++ b/init.go
@@ -21,10 +21,10 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
me.viewName = "autotypist"
- repos := me.forge.Repos.SortByGoPath()
+ repos := me.forge.Repos.SortByFullPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.Config.IsReadOnly(repo.GoPath) {
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
@@ -47,10 +47,10 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
me.viewName = "autotypist"
- repos := me.forge.Repos.SortByGoPath()
+ repos := me.forge.Repos.SortByFullPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.Config.IsReadOnly(repo.GoPath) {
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)