forgejo/modules
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
..
activitypub
analyze
appstate Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
auth
avatar Add user settings key/value DB table (#16834) 2021-11-22 04:47:23 -05:00
base
cache
charset
context More pleasantly handle broken or missing git repositories (#17747) 2021-11-22 22:32:16 +00:00
convert Move attachment into models/repo/ (#17650) 2021-11-19 21:39:57 +08:00
csv
doctor Move attachment into models/repo/ (#17650) 2021-11-19 21:39:57 +08:00
emoji
eventsource
generate
git Simplify code for wrting SHA to name-rev (#17696) 2021-11-18 04:50:22 -05:00
gitgraph Remove unnecessary variable assignments (#17695) 2021-11-18 09:33:06 +08:00
graceful Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00
hcaptcha
highlight Add .gitattribute assisted language detection to blame, diff and render (#17590) 2021-11-17 20:37:00 +00:00
hostmatcher Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
httpcache
httplib
indexer Add .gitattribute assisted language detection to blame, diff and render (#17590) 2021-11-17 20:37:00 +00:00
json
lfs Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
log A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
markup Prevent double sanitize (#16386) 2021-11-19 18:46:47 +08:00
metrics
migration Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
nosql Remove unnecessary variable assignments (#17695) 2021-11-18 09:33:06 +08:00
notification A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
options
password
pprof
private
process
proxy
public
queue Prevent deadlock in TestPersistableChannelQueue (#17717) 2021-11-19 01:13:25 +00:00
recaptcha
references
repofiles Fix close issue but time watcher still running (#17643) 2021-11-21 17:11:48 +08:00
repository Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
secret
session
setting Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
ssh Fix ipv6 parsing for builtin ssh server (#17561) 2021-11-06 14:23:32 +08:00
storage
structs Add migration from GitBucket (#16767) 2021-11-14 20:11:10 +01:00
svg
sync
templates Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
test Decouple unit test, remove intermediate unittestbridge package (#17662) 2021-11-16 16:53:21 +08:00
timeutil
translation
typesniffer
updatechecker
upload Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
uri
user
util Only allow webhook to send requests to allowed hosts (#17482) 2021-11-01 16:39:52 +08:00
validation
web Remove unnecessary variable assignments (#17695) 2021-11-18 09:33:06 +08:00