gitea/modules
zeripath fe09ee564d
Prevent context deadline error propagation in GetCommitsInfo (#20346)
* Prevent context deadline error propagation in GetCommitsInfo

Although `WalkGitLog` tries to test for `context.DeadlineExceededErr`
there is a small chance that the error will propagate to the reader
before it is recognised. This will cause the error to propagate up to
`renderDirectoryFiles` and cause a http status 500.

Here we check that the error passed is a `DeadlineExceededErr` via error.Is

Fix #20329

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-14 00:24:29 +02:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
container
context
convert
csv
doctor Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
emoji
eventsource
generate
git Prevent context deadline error propagation in GetCommitsInfo (#20346) 2022-07-14 00:24:29 +02:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher Add tests for the host checking logic, clarify the behaviors (#20328) 2022-07-13 09:07:16 +08:00
httpcache
httplib
indexer
json
lfs
log
markup
metrics
migration
mirror Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
nosql Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
notification Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository
secret
session
setting Use default values when provided values are empty (#20318) 2022-07-13 13:33:31 +08:00
sitemap
ssh Refactor SSH init code, fix directory creation for TrustedUserCAKeys file (#20299) 2022-07-10 14:50:26 +08:00
storage
structs
svg
sync
templates Vertical align avatar at middle (#20302) 2022-07-10 19:49:13 +01:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
web Fix various typos (#20338) 2022-07-12 23:32:37 +02:00