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.
forgejo/services
zeripath 4a23212102
Do DB update after merge in hammer context (#21401)
When merge was changed to run in the background context, the db updates
were still running in request context. This means that the merge could
be successful but the db not be updated.

This PR changes both these to run in the hammer context, this is not
complete rollback protection but it's much better.

Fix #21332

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
agit Add more linters to improve code readability (#19989) 2 years ago
asymkey Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
attachment Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
auth SessionUser protection against nil pointer dereference (#21358) 2 years ago
automerge Add more linters to improve code readability (#19989) 2 years ago
comments Move issues related files into models/issues (#19931) 2 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
cron Move some files into models' sub packages (#20262) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Limit length of repo description and repo url input fields (#21119) 2 years ago
gitdiff Stop logging CheckPath returns error: context canceled (#21064) 2 years ago
issue Allow poster to choose reviewers (#21084) 2 years ago
lfs Move some code into models/git (#19879) 2 years ago
mailer Share HTML template renderers and create a watcher framework (#20218) 2 years ago
migrations Foreign ID conflicts if ID is 0 for each item (#21271) 2 years ago
mirror Add new API endpoints for push mirrors management (#19841) 2 years ago
org Move some files into models' sub packages (#20262) 2 years ago
packages Replace `ServeStream` with `ServeContent` (#20903) 2 years ago
pull Do DB update after merge in hammer context (#21401) 2 years ago
release Add more checks in migration code (#21011) 2 years ago
repository Refactor parseTreeEntries, speed up tree list (#21368) 2 years ago
task Move some files into models' sub packages (#20262) 2 years ago
user Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
webhook Fix formatted link for PR review notifications to matrix (#21319) 2 years ago
wiki Webhook for Wiki changes (#20219) 2 years ago