1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-01 07:44:25 +00:00
gitea/modules/indexer/code
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
..
bleve_test.go Support elastic search for code search (#10273) 2020-08-30 19:08:01 +03:00
bleve.go 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
elastic_search_test.go Fix bug on elastic search (#12811) 2020-09-12 20:31:52 +08:00
elastic_search.go 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
git.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
indexer_test.go Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
indexer.go Fix golangci-lint warnings (#17598 et al) (#17668) 2021-11-16 20:38:49 +00:00
search.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
wrapped.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00