]> source.dussan.org Git - gitea.git/commit
Fix panic in recursive cache (#16298)
authorzeripath <art27@cantab.net>
Tue, 29 Jun 2021 20:12:43 +0000 (21:12 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 20:12:43 +0000 (16:12 -0400)
commitadd74fb368b4b6a5deee91e052240c0956d7dc5b
treedf9b63a3f9ba75175979022687ffd45a67c8a8d6
parent653704c102f7eb389adcbbcfd0e5a9e9aaa5b227
Fix panic in recursive cache (#16298)

There is a bug with last commit cache recursive cache where the last
commit information that refers to the current tree itself will cause a
panic due to its path ("") not being included in the expected tree entry
paths.

This PR fixes this by skipping the missing entry.

Fix #16290

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/git/last_commit_cache_nogogit.go