1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Adjust transaction handling via db.Context (#20031)

This commit is contained in:
Lunny Xiao
2022-06-20 20:38:58 +08:00
committed by GitHub
parent cb50375e2b
commit 0649c54275
4 changed files with 29 additions and 42 deletions

View File

@@ -229,7 +229,7 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili
}
// Create/Remove git-daemon-export-ok for git-daemon...
if err := CheckDaemonExportOK(db.WithEngine(ctx, e), repo); err != nil {
if err := CheckDaemonExportOK(ctx, repo); err != nil {
return err
}