This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/context
zeripath 832f987d80
Restore setting of ctx.Repo.Mirror (#18205)
In #17933 repoAssignment no longer sets the ctx.Repo.Mirror field meaning that
attempting change mirror settings results in an NPE. This PR simply restores this.

Either we should remove this field or, we should set it. At present it seems simplest
to set it instead of going looking in the Data for the value although converting the
context to a bag of things may be the correct approach in the future.

Fix #18204

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

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-01-08 10:03:51 +08:00
..
access_log.go
api.go
api_org.go
api_test.go
auth.go
captcha.go
context.go
csrf.go
form.go
org.go
pagination.go
permission.go
private.go
repo.go Restore setting of ctx.Repo.Mirror (#18205) 2022-01-08 10:03:51 +08:00
response.go
xsrf.go
xsrf_test.go