aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r--cache/repo_cache.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index 2b0fa360..bec733e3 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -153,6 +153,19 @@ func (c *RepoCache) lock() error {
}
func (c *RepoCache) Close() error {
+ for id := range c.identities {
+ delete(c.identities, id)
+ }
+ for id := range c.identitiesExcerpts {
+ delete(c.identitiesExcerpts, id)
+ }
+ for id := range c.bugs {
+ delete(c.bugs, id)
+ }
+ for id := range c.bugExcerpts {
+ delete(c.bugExcerpts, id)
+ }
+
lockPath := repoLockFilePath(c.repo)
return os.Remove(lockPath)
}