diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 730e6e6..866303f 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -102,8 +102,10 @@ func globalDisplayOptions(box *gui.Node) { group1.NewButton("git reset --hard", func() { for _, repo := range me.allrepos { if whitelist(repo.String()) { + log.Warn("skipping whitelist", repo.String()) continue } + log.Warn("running git reset --hard", repo.String()) repo.status.RunCmd([]string{"git", "reset", "--hard"}) } }) diff --git a/whitelist.go b/whitelist.go index bebef43..731b7d4 100644 --- a/whitelist.go +++ b/whitelist.go @@ -23,7 +23,7 @@ func initWhitelist() { func whitelist(path string) bool { // log.Info("whitelist START", path) if me.ignoreWhitelist.Checked() { - return true + return false } _, ok := release.whitelist[path]