diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 06:36:28 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 06:36:28 -0600 |
| commit | 5d232293a002cc4b5bcb949a0e329337ab4e90b4 (patch) | |
| tree | e5f7422210227239f04601b6f76f9a78ca442a60 /init.go | |
| parent | 1d124c7dbfdfd9bc4cb82f74b4883791c9f185b8 (diff) | |
lots of cleanups
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |
