1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-27 10:04:28 +00:00
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
..
2021-04-01 19:41:09 +02:00
2021-06-07 07:27:09 +02:00
2020-10-02 23:37:53 -04:00
2021-04-12 10:49:26 -04:00
2021-07-21 20:19:36 +08:00
2018-11-04 22:20:00 -05:00
2021-05-03 13:24:24 -04:00
2019-06-12 15:41:28 -04:00
2021-07-21 20:19:36 +08:00
2020-04-05 07:20:50 +01:00