diff options
Diffstat (limited to 'findRepos.go')
| -rw-r--r-- | findRepos.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/findRepos.go b/findRepos.go index 453f904..2882950 100644 --- a/findRepos.go +++ b/findRepos.go @@ -35,10 +35,10 @@ func findRepos() bool { } func findPrivate() { - all := me.forge.Repos.SortByGoPath() + all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() - if me.forge.Config.IsPrivate(repo.GoPath) { + if me.forge.Config.IsPrivate(repo.GetGoPath()) { me.found.AppendUniqueGoPath(repo) } } @@ -47,10 +47,10 @@ func findPrivate() { // finds repos that are writable func findMine() { // log.Printf("get mine %s\n", me.forge.GetGoSrc()) - all := me.forge.Repos.SortByGoPath() + all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() - if me.forge.Config.IsWritable(repo.GoPath) { + if me.forge.Config.IsWritable(repo.GetGoPath()) { me.found.AppendUniqueGoPath(repo) } } @@ -59,25 +59,25 @@ func findMine() { // finds repos that are writable func findFavorites() { // log.Printf("get favorites %s\n", me.forge.GetGoSrc()) - all := me.forge.Repos.SortByGoPath() + all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() - if me.forge.Config.IsFavorite(repo.GoPath) { + if me.forge.Config.IsFavorite(repo.GetGoPath()) { me.found.AppendUniqueGoPath(repo) } } } func findAll() { - all := me.forge.Repos.SortByGoPath() + all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() me.found.AppendUniqueGoPath(repo) - if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly { + if me.forge.Config.IsReadOnly(repo.GetGoPath()) && !argv.FindReadOnly { if repo.ReadOnly { continue } - log.Info("todo: ConfigSave() readonly flag on repo is wrong", repo.GoPath) + log.Info("todo: ConfigSave() readonly flag on repo is wrong", repo.GetGoPath()) repo.ReadOnly = true configSave = true continue |
