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.
forgejo/routers
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>
3 years ago
..
api/v1 Remove unnecessary attributes of User struct (#17745) 3 years ago
common Rename db Engines related functions (#17481) 3 years ago
install Fix bug on admin subcommand (#17533) 3 years ago
private More pleasantly handle broken or missing git repositories (#17747) 3 years ago
utils A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
web Remove unnecessary attributes of User struct (#17745) 3 years ago
init.go Move task from modules to services (#17680) 3 years ago