diff --git a/globalResetOptions.go b/globalResetOptions.go index 3f7e2d8..31e136b 100644 --- a/globalResetOptions.go +++ b/globalResetOptions.go @@ -23,18 +23,20 @@ func globalResetOptions(box *gui.Node) { grid.NewLabel("clean start over") me.deleteGoSrcPkgB = grid.NewButton("rm ~/go/src & ~/go/pkg & ~/.cache/go-build", func() { var state string = me.deleteGoSrcPkgB.String() - loop := me.repos.View.ReposSortByName() - for loop.Scan() { - repo := loop.Repo() - if repo.GetGoPath() == "go.wit.com/apps/autotypist" { - continue + /* + loop := me.repos.View.ReposSortByName() + for loop.Scan() { + repo := loop.Repo() + if repo.GetGoPath() == "go.wit.com/apps/autotypist" { + continue + } + if repo.Status.CheckDirty() { + log.Warn("repo is dirty. commit your changes first", repo.Status.Path()) + me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)") + return + } } - if repo.Status.CheckDirty() { - log.Warn("repo is dirty. commit your changes first", repo.Status.Path()) - me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)") - return - } - } + */ log.Warn("no repos have uncommited changes") log.Warn("TODO: check things are pushed and check every dir in go/src/")