forked from gitea/gitea
1
0
Fork 0
gitea/services
zeripath 3ae4c4898b
Prevent hang in git cat-file if the repository is not a valid repository (Partial ) ()
* Prevent hang in git cat-file if the repository is not a valid repository (Partial )

Unfortunately it appears that if git cat-file is run in an invalid
repository it will hang until stdin is closed. This will result in
deadlocked /pulls pages and dangling git cat-file calls if a broken
repository is tried to be reviewed or pulls exists for a broken
repository.

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

* placate lint

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

* fix compilation bug

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

* Add the missing directories to the testrepos

* fixup! Add the missing directories to the testrepos

* and ensure that all of the other places have the objects directories too

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-12-17 10:08:00 +08:00
..
archiver Return 400 but not 500 when request archive with wrong format () () 2021-11-20 00:31:29 +08:00
auth Fix golangci-lint warnings ( et al) () 2021-11-16 20:38:49 +00:00
comments Enhance Ghost comment mitigation Settings () 2021-01-21 21:56:19 -05:00
externalaccount Allow externalID to be UUID () 2019-10-17 10:06:28 +08:00
forms Add option to provide signature for a token to verify key ownership () 2021-07-13 15:28:07 +02:00
gitdiff backport(1.15): make `ParsePatch` more robust () 2021-11-08 11:28:16 +08:00
issue Fix close issue but time watcher still running () 2021-11-23 20:05:44 +08:00
lfs Test if LFS object is accessible () () 2021-08-31 17:58:39 +02:00
mailer Fix missing repo link in issue/pull assigned emails () () 2021-09-30 01:21:12 +02:00
mirror Add push to remote mirror repository () 2021-06-14 19:20:43 +02:00
pull Prevent hang in git cat-file if the repository is not a valid repository (Partial ) () 2021-12-17 10:08:00 +08:00
release Fix dump and restore respository () () 2021-08-31 10:44:14 +01:00
repository Fix close issue but time watcher still running () 2021-11-23 20:05:44 +08:00
webhook Only allow webhook to send requests to allowed hosts () () 2021-11-06 09:23:43 +00:00
wiki Fix 500 on first wiki page () () 2021-08-03 23:46:08 +01:00