You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
zeripath 659b946eda
Fix missing close in WalkGitLog (#17008) (#17009)
Backport #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>
4 years ago
..
analyze Speed up `enry.IsVendor` (#15213) 4 years ago
auth Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16570) 4 years ago
avatar Add Image Diff for SVG files (#14867) 4 years ago
base Fixed assert statements. (#16089) 4 years ago
cache Add LRU mem cache implementation (#16226) 4 years ago
charset Refactor renders (#15175) 4 years ago
context Pass down SignedUserName down to AccessLogger context (#16605) (#16616) 4 years ago
convert Add option to provide signature for a token to verify key ownership (#14054) 4 years ago
cron Fix archive error when rename repo or user (#16399) 4 years ago
csv Refactor renders (#15175) 4 years ago
doctor Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) (#16977) 4 years ago
emoji Run processors on whole of text (#16155) 4 years ago
eventsource Hold the event source when there are no listeners (#15725) 4 years ago
generate Switch to maintained jwt lib (#16532) (#16533) 4 years ago
git Fix missing close in WalkGitLog (#17008) (#17009) 4 years ago
gitgraph Fix bug on commit graph (#15517) 4 years ago
graceful Support HTTP/2 in Let's Encrypt (#16371) 4 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Ensure empty lines are copiable and final new line too (#16678) (#16692) 4 years ago
httpcache Add ETag header (#15370) 4 years ago
httplib Second attempt at preventing zombies (#16326) 4 years ago
indexer Fix data race in bleve indexer (#16474) (#16509) 4 years ago
lfs Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
log Fix race in log (#16490) (#16505) 4 years ago
markup In Render tolerate not being passed a context (#16842) (#16858) 4 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Ignore review comment when ref commit is missed (#16905) (#16919) 4 years ago
nosql Fix setting redis db path (#15698) 4 years ago
notification Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Fixed assert statements. (#16089) 4 years ago
pprof Add golangci (#6418) 6 years ago
private Fix dump and restore respository (#16698) (#16898) 4 years ago
process Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
public Improve assets handler middleware (#15961) 4 years ago
queue Fix race in log (#16490) (#16505) 4 years ago
recaptcha Migrate to use jsoniter instead of encoding/json (#14841) 4 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
repofiles Simplify split diff view generation and remove JS dependency (#16775) (#16863) 4 years ago
repository Report the correct number of pushes on the feeds (#16811) (#16822) 4 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
session Migrate to use jsoniter instead of encoding/json (#14841) 4 years ago
setting Add LRU mem cache implementation (#16226) 4 years ago
ssh Second attempt at preventing zombies (#16326) 4 years ago
storage Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) (#16977) 4 years ago
structs Add option to provide signature for a token to verify key ownership (#14054) 4 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 5 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Fix bug of migrated repository not index (#16991) (#16996) 4 years ago
templates Report the correct number of pushes on the feeds (#16811) (#16822) 4 years ago
test Move middlewares to web/middleware (#14480) 4 years ago
timeutil Fix display since time round (#14226) 4 years ago
translation Use index of the supported tags to choose user lang (#15452) 4 years ago
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 5 years ago
util Handle too long PR titles correctly (#16517) (#16549) 4 years ago
validation Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
web Restore CORS on git smart http protocol (#16496) (#16506) 4 years ago