forgejo/modules
zeripath 0faf175694
Fix missing close in WalkGitLog (#17008)
When the external context is cancelled it is possible for the
GitLogReader to not itself be Closed.

This PR does three things:

1. Instead of adding a plain defer it wraps the `g.Close` in a func as
`g` may change.
2. It adds the missing explicit g.Close - although the defer fix makes
this unnecessary.
3. It passes down the external context as the base context for the
GitLogReader meaning that the cancellation of the external context will
pass down automatically.

Fix #17007

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-10 17:46:12 +08:00
..
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
auth
avatar
base
cache
charset
context
convert
cron
csv
doctor
emoji
eventsource
generate
git Fix missing close in WalkGitLog (#17008) 2021-09-10 17:46:12 +08:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib
indexer
json
lfs
log
markup
matchlist
metrics
migrations
nosql
notification
options
password
pprof
private
process
proxy
public
queue
recaptcha
references
repofiles
repository
secret
session
setting Enable Malayalam, Greek, Persian, Hungarian & Indonesian by default (#16998) 2021-09-09 14:16:42 +08:00
ssh
storage
structs
svg
sync
task Fix bug of migrated repository not index (#16991) 2021-09-08 18:43:19 +01:00
templates
test
timeutil
translation
typesniffer
upload
uri
user
util
validation
web