1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-01 14:56:30 +00:00
gitea/services/gitdiff
zeripath 7ebc3da7cb
Prevent dangling GetAttribute calls () ()
* 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
csv_test.go Enable show more files in diff for git <2.31 () 2021-11-20 13:50:00 +00:00
csv.go Simplify parameter types () 2021-12-20 04:41:31 +00:00
gitdiff_test.go Add warning for BIDI characters in page renders and in diffs () 2022-01-07 02:18:52 +01:00
gitdiff.go Prevent dangling GetAttribute calls () () 2022-02-14 15:27:55 -05:00
main_test.go Decouple unit test code from business code () 2021-11-12 22:36:47 +08:00