0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 05:50:50 +01:00
gitea/routers/web/repo
wxiaoguang 99283415bc
Refactor Pull Mirror and fix out-of-sync bugs (#24732)
The "mirror" table and "repository" table might be out-of-sync in some
cases.

It means that "IsMirror=true" but "Mirror=nil"

This PR removes unnecessary "Mirror" field, rename "Mirror" to
"PullMirror" and fix nil panic bug.


Screenshot of changed templates:


![image](https://github.com/go-gitea/gitea/assets/2114189/c0f2bdfc-5911-43ea-b989-b19619de4235)



![image](https://github.com/go-gitea/gitea/assets/2114189/1078b41a-484f-4c06-8c2f-edb9e658275d)
2023-05-15 19:02:10 +00:00
..
actions Don't filter action runs based on state (#24711) 2023-05-14 16:04:24 +00:00
setting
activity.go
attachment.go Make repository response support HTTP range request (#24592) 2023-05-09 15:34:36 +08:00
blame.go
branch.go
cherry_pick.go
commit.go Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00
compare.go
download.go Make repository response support HTTP range request (#24592) 2023-05-09 15:34:36 +08:00
editor_test.go
editor.go
find.go
helper_test.go
helper.go
http_test.go
http.go
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
lfs.go
main_test.go
middlewares.go
migrate.go Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
milestone.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
packages.go
patch.go
projects_test.go
projects.go
pull_review.go
pull.go
release_test.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
release.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
render.go
repo.go Remove the parallelizing when loading repo for dashboard (#24705) 2023-05-14 21:45:47 +08:00
search.go
setting_protected_branch.go
setting.go Refactor Pull Mirror and fix out-of-sync bugs (#24732) 2023-05-15 19:02:10 +00:00
settings_test.go
tag.go
topic.go
treelist.go
view_test.go
view.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
webhook.go Reenable creating default webhooks. (#24626) 2023-05-11 10:10:57 +08:00
wiki_test.go
wiki.go Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00