gitea/routers/web/repo
wxiaoguang 26070eb818
When the git repository on storage is changed, the repository modal should also be updated (#18088)
User would keep seeing an empty repo if:
* An error occurs during the first git pushing/receiving
* A user replaces the Gitea's empty repository manually
Fix: when a user is viewing the repository web page, if the repoModal.IsEmpty is true, we check the git repository again to detect whether it is really empty.

However: the IsEmpty flag is deeply broken and should be removed. For example it's possible for a repository to be non-empty by that flag but still 500 because there are no branches - only tags -or the default branch is non-extant as it has been 0-pushed.
2021-12-24 23:36:26 +08:00
..
activity.go
attachment.go
blame.go
branch.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
commit.go
compare.go Improve interface when comparing a branch which has created a pull request (#17911) 2021-12-24 12:14:42 +00:00
download.go
editor.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
editor_test.go
http.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
http_test.go
issue.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
issue_content_history.go
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects.go Use JSON module instead of stdlib json (#18003) 2021-12-17 09:15:02 +08:00
projects_test.go
pull.go Do not read or write git reference files directly (#18079) 2021-12-23 21:44:00 +08:00
pull_review.go
release.go
release_test.go
repo.go Ensure that git repository is closed before transfer (#18049) 2021-12-21 10:01:58 +08:00
search.go
setting.go Add Reindex buttons to repository settings page (#17494) 2021-12-16 23:55:12 +08:00
setting_protected_branch.go
settings_test.go
tag.go
topic.go
view.go When the git repository on storage is changed, the repository modal should also be updated (#18088) 2021-12-24 23:36:26 +08:00
webhook.go
wiki.go
wiki_test.go