aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2019-02-25 11:42:09 +0100
committerJavi Fontan <jfontan@gmail.com>2019-02-25 15:10:24 +0100
commite9d0393809be173a2b28cb1a60b306468464c7fb (patch)
treeda147d38dde5940994928e3d7096704fff4edc10 /repository.go
parentdb6c41c156481962abf9a55a324858674c25ab08 (diff)
downloadgo-git-e9d0393809be173a2b28cb1a60b306468464c7fb.tar.gz
plumbing/cache: check for empty cache list
If there is wrong data in the cache it may cause the eviction code to empty the object list and cause a panic. This patch adds a check and sets the cache usage to 0 when this happens. Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'repository.go')
0 files changed, 0 insertions, 0 deletions