Restore setting of ctx.Repo.Mirror (#18205)
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 <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

Co-authored-by: wxiaoguang <afddda5b6ea4f5ea4386c1c8946f240cce9ffa2e@gmail.com>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea