scan for all repos again
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
024d4ba18c
commit
55b175e2da
21
repolist.go
21
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() {
|
||||
|
|
Loading…
Reference in New Issue