diff options
author | Jason Song <i@wolfogre.com> | 2023-03-01 06:17:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 16:17:51 -0600 |
commit | 04347eb810689db799003cc342bbbc756716ff12 (patch) | |
tree | a7131234f7f93717d8988cf39cc04e277823ceb7 /routers/private | |
parent | cbbd3726b4edb3c2bda59610050fd5af149fbdb1 (diff) | |
download | gitea-04347eb810689db799003cc342bbbc756716ff12.tar.gz gitea-04347eb810689db799003cc342bbbc756716ff12.zip |
Use context parameter in services/repository (#23186)
Use context parameter in `services/repository`.
And use `cache.WithCacheContext(ctx)` to generate push action history
feeds.
Fix #23160
Diffstat (limited to 'routers/private')
-rw-r--r-- | routers/private/serv.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/private/serv.go b/routers/private/serv.go index 17f966e3e4..23ac011cf5 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -368,7 +368,7 @@ func ServCommand(ctx *context.PrivateContext) { return } - repo, err = repo_service.PushCreateRepo(user, owner, results.RepoName) + repo, err = repo_service.PushCreateRepo(ctx, user, owner, results.RepoName) if err != nil { log.Error("pushCreateRepo: %v", err) ctx.JSON(http.StatusNotFound, private.ErrServCommand{ |