forgejo/templates/repo
zeripath 1dbc58f742
More pleasantly handle broken or missing git repositories (#17747)
* More pleasantly handle broken or missing git repositories

In #17742 it was noted that there a completely invalid git repository underlying a
repo on gitea.com. This happened due to a problem during a migration however, it
is not beyond the realms of possibility that a corruption could occur to another
user.

This PR adds a check to RepoAssignment that will detect if a repository loading has
failed due to an absent git repository. It will then show a page suggesting the user
contacts the administrator or deletes the repository.

Fix #17742

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

* Update options/locale/locale_en-US.ini

Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-11-22 22:32:16 +00:00
..
branch Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
diff Allow Loading of Diffs that are too large (#17739) 2021-11-22 00:51:08 +08:00
editor Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
graph
issue Added comment for changing issue ref (#17672) 2021-11-19 17:54:31 +08:00
migrate
projects Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
pulls Improvements to content history (#17746) 2021-11-22 20:20:16 +08:00
release Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
settings Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
wiki
activity.tmpl
blame.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
branch_dropdown.tmpl
clone_buttons.tmpl Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl
commits_table.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
create.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
empty.tmpl More pleasantly handle broken or missing git repositories (#17747) 2021-11-22 22:32:16 +00:00
forks.tmpl Add pagination to fork list (#17639) 2021-11-18 22:45:56 +08:00
graph.tmpl
header.tmpl More pleasantly handle broken or missing git repositories (#17747) 2021-11-22 22:32:16 +00:00
home.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
icon.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
view_list.tmpl
watchers.tmpl