summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tagWindow.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/tagWindow.go b/tagWindow.go
index 122f2d6..473d0a3 100644
--- a/tagWindow.go
+++ b/tagWindow.go
@@ -71,18 +71,21 @@ func makeTagWindow() *tagWindow {
if tagsW == nil {
repo.status.TagWindow()
tagsW = repo.status.TagsW
- tagsW.PruneSmart()
continue
}
+ tagsW.PruneSmart()
deleteTags := tagsW.List()
for _, t := range deleteTags {
if me.autoDryRun.Checked() {
log.Info("delete tag --dry-run:", t.TagString(), "from", repo.status.String())
} else {
log.Info("Deleting tag:", t.TagString(), "from", repo.status.String())
- // tagsW.Delete(t)
+ tagsW.Delete(t)
}
}
+ if ! me.autoDryRun.Checked() {
+ return
+ }
}
})