From 55b175e2daee5bbaebf3fb58b8943aedfe2e9660 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 14 Feb 2024 13:24:37 -0600 Subject: [PATCH] scan for all repos again Signed-off-by: Jeff Carr --- repolist.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/repolist.go b/repolist.go index fad6e8b..956f03a 100644 --- a/repolist.go +++ b/repolist.go @@ -92,6 +92,7 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri log.Info("addRepo() already had path", path) return } + log.Info("addRepo() attempting to add path", path) newRepo := new(repo) @@ -230,18 +231,14 @@ func repolistWindow() { me.reposgrid.NextRow() } - // TODO: figure out why this borks everything - /* - for i, path := range repostatus.ListGitDirectories() { - // log.Info("addRepo()", i, path) - tmp := strings.TrimPrefix(path, me.goSrcPwd.String()) - log.Info("addRepo()", i, tmp) - addRepo(me.reposgrid, tmp, "master", "devel", usr.Username) - me.reposgrid.NextRow() - } - */ - - // reposwin.Toggle() + for i, path := range repostatus.ListGitDirectories() { + // log.Info("addRepo()", i, path) + tmp := strings.TrimPrefix(path, me.goSrcPwd.String()) + path = strings.Trim(tmp, "/") + log.Info("addRepo()", i, path) + addRepo(me.reposgrid, path, "master", "devel", usr.Username) + me.reposgrid.NextRow() + } } func showApps() {