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.
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>
3 years ago
..
archiver Return 400 but not 500 when request archive with wrong format (#17691) (#17700) 3 years ago
auth Fix golangci-lint warnings (#17598 et al) (#17668) 3 years ago
comments Enhance Ghost comment mitigation Settings (#14392) 4 years ago
externalaccount Allow externalID to be UUID (#8551) 5 years ago
forms Add option to provide signature for a token to verify key ownership (#14054) 4 years ago
gitdiff backport(1.15): make `ParsePatch` more robust (#17580) 3 years ago
issue Fix close issue but time watcher still running (#17761) 3 years ago
lfs Test if LFS object is accessible (#16865) (#16904) 3 years ago
mailer Fix missing repo link in issue/pull assigned emails (#17183) (#17184) 3 years ago
mirror Add push to remote mirror repository (#15157) 4 years ago
pull Prevent hang in git cat-file if the repository is not a valid repository (Partial #17991) (#17992) 3 years ago
release Fix dump and restore respository (#16698) (#16898) 3 years ago
repository Fix close issue but time watcher still running (#17761) 3 years ago
webhook Only allow webhook to send requests to allowed hosts (#17482) (#17510) 3 years ago
wiki Fix 500 on first wiki page (#16586) (#16598) 4 years ago