diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -19,11 +19,17 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList { me.Enable() me.forge = f + me.viewName = "autotypist" + repos := me.forge.Repos.SortByPath() for repos.Scan() { repo := repos.Next() - log.Info("repo scan directory:", repo.FullPath) - me.AddRepo(repo) + if me.forge.IsReadOnly(repo.GoPath) { + log.Info("repo scan readonly directory:", repo.FullPath) + } else { + log.Info("repo scan writable directory:", repo.FullPath) + me.AddRepo(repo) + } } me.Enable() |
