1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:44:41 +00:00
gitea/services
zeripath 3ae4c4898b
Prevent hang in git cat-file if the repository is not a valid repository (Partial #17991) (#17992)
* Prevent hang in git cat-file if the repository is not a valid repository (Partial #17991)

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 (#17691) (#17700) 2021-11-20 00:31:29 +08:00
auth Fix golangci-lint warnings (#17598 et al) (#17668) 2021-11-16 20:38:49 +00:00
comments Enhance Ghost comment mitigation Settings (#14392) 2021-01-21 21:56:19 -05:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
forms Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gitdiff backport(1.15): make ParsePatch more robust (#17580) 2021-11-08 11:28:16 +08:00
issue Fix close issue but time watcher still running (#17761) 2021-11-23 20:05:44 +08:00
lfs Test if LFS object is accessible (#16865) (#16904) 2021-08-31 17:58:39 +02:00
mailer Fix missing repo link in issue/pull assigned emails (#17183) (#17184) 2021-09-30 01:21:12 +02:00
mirror Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
pull Prevent hang in git cat-file if the repository is not a valid repository (Partial #17991) (#17992) 2021-12-17 10:08:00 +08:00
release Fix dump and restore respository (#16698) (#16898) 2021-08-31 10:44:14 +01:00
repository Fix close issue but time watcher still running (#17761) 2021-11-23 20:05:44 +08:00
webhook Only allow webhook to send requests to allowed hosts (#17482) (#17510) 2021-11-06 09:23:43 +00:00
wiki Fix 500 on first wiki page (#16586) (#16598) 2021-08-03 23:46:08 +01:00