1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 07:34:25 +00:00
gitea/services/gitdiff
zeripath 7ebc3da7cb
Prevent dangling GetAttribute calls (#18754) (#18755)
* Prevent dangling GetAttribute calls

It appears possible that there could be a hang due to unread data from the
repo-attribute command pipes. This PR simply closes these during the defer.

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

* move close into the defer

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

* lets try again

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-14 15:27:55 -05:00
..
testdata/academic-module Fix panic when diff (#9187) 2019-11-28 17:05:57 +08:00
csv_test.go Enable show more files in diff for git <2.31 (#17733) 2021-11-20 13:50:00 +00:00
csv.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
gitdiff_test.go Add warning for BIDI characters in page renders and in diffs (#17562) 2022-01-07 02:18:52 +01:00
gitdiff.go Prevent dangling GetAttribute calls (#18754) (#18755) 2022-02-14 15:27:55 -05:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00