aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-04 18:18:24 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-04 18:20:21 +0200
commitc0d3b4b032b44d4ceff2f3cabdedd16633f1c315 (patch)
tree84fdd5875d0bcc92a5a6842dff6ca53148413fac /commands
parente2a0d178cfc5d552131c518778fa12ce5c5dc930 (diff)
downloadgit-bug-c0d3b4b032b44d4ceff2f3cabdedd16633f1c315.tar.gz
cache: fix missed code path that should update the cache
fix #36
Diffstat (limited to 'commands')
-rw-r--r--commands/ls.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/ls.go b/commands/ls.go
index ea5418c4..18496e06 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -14,6 +14,7 @@ func runLsBug(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
+ defer backend.Close()
allIds := backend.AllBugsId(cache.OrderByCreation, cache.OrderAscending)