diff options
| author | Jeff Carr <[email protected]> | 2024-01-31 01:41:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-31 01:41:38 -0600 |
| commit | 537af9573e7f919e62d8dce0a89c98d304a3032d (patch) | |
| tree | 3df378e8bfce65ab99fc7e87561c7e768e64f1e5 | |
| parent | 1c3263638364b85eb023cabad8efda9f5f6cae1f (diff) | |
fix ignore whitelist checkbox logic
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | globalDisplayOptions.go | 2 | ||||
| -rw-r--r-- | whitelist.go | 2 |
2 files changed, 3 insertions, 1 deletions
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] |
