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/context
zeripath e32ab429ff
Prevent NPE on update mirror settings (#19864)
A `repo_model.Mirror` repository field (`.Repo`) will not automatically
be set, but is used without checking in mirror_pull.go:UpdateAddress.
This will cause an NPE.

This PR changes UpdateAddress to use the helper function GetRepository()
helping prevent future NPEs but also changes modules/context/repo.go to
ensure that the Mirror.Repo is set.

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
..
access_log.go
api.go
api_org.go
api_test.go
auth.go
captcha.go
context.go
csrf.go
form.go
org.go Only show accessible teams in dashboard dropdown list (#19642) 3 years ago
package.go Fix org package owner permissions (#19742) 3 years ago
pagination.go
permission.go Move access and repo permission to models/perm/access (#19350) 3 years ago
private.go
repo.go Prevent NPE on update mirror settings (#19864) 3 years ago
response.go
utils.go
xsrf.go
xsrf_test.go