fix ignore whitelist checkbox logic
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1c32636383
commit
537af9573e
|
@ -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"})
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue