scan for all repos again

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-14 13:24:37 -06:00
parent 024d4ba18c
commit 55b175e2da
1 changed files with 9 additions and 12 deletions

View File

@ -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() {