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>
..
testdata/academic-module Fix panic when diff ()
csv.go Simplify parameter types ()
csv_test.go Enable show more files in diff for git <2.31 ()
gitdiff.go Prevent dangling GetAttribute calls () ()
gitdiff_test.go Add warning for BIDI characters in page renders and in diffs ()
main_test.go Decouple unit test code from business code ()