summaryrefslogtreecommitdiff
path: root/globalResetOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalResetOptions.go')
-rw-r--r--globalResetOptions.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/globalResetOptions.go b/globalResetOptions.go
index bab1934..ac719ed 100644
--- a/globalResetOptions.go
+++ b/globalResetOptions.go
@@ -5,6 +5,7 @@ import (
"path/filepath"
"go.wit.com/gui"
+ "go.wit.com/lib/gui/repolist"
"go.wit.com/log"
)
@@ -29,8 +30,8 @@ func globalResetOptions(box *gui.Node) {
buildOptions.NewLabel("start over")
me.deleteGoSrcPkgB = buildOptions.NewButton("rm ~/go/src & ~/go/pkg", func() {
- for _, repo := range me.allrepos {
- if repo.status.CheckDirty() {
+ for _, repo := range repolist.AllRepos() {
+ if repo.CheckDirty() {
log.Warn("repo is dirty. commit your changes first", repo.String())
me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)")
return