0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 18:55:17 +01:00
gitea/routers/private
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
..
default_branch.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
hook_post_receive.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
hook_pre_receive.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
hook_proc_receive.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
hook_verification.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
internal_repo.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
internal.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
key.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
mail.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
manager_unix.go Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
manager_windows.go Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
manager.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
restore_repo.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
serv.go More pleasantly handle broken or missing git repositories (#17747) 2021-11-22 22:32:16 +00:00
ssh_log.go add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00