From 87261f3fb95da92d74d72d057fc0f1e9819f16a7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 9 Feb 2023 04:51:02 +0100 Subject: Fix blame view missing lines (#22826) Creating a new buffered reader for every part of the blame can miss lines, as it will read and buffer bytes that the next buffered reader will not get. Co-authored-by: Lunny Xiao --- modules/git/blame_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git/blame_test.go') diff --git a/modules/git/blame_test.go b/modules/git/blame_test.go index a2c8fe8e75..1c0cd5c4aa 100644 --- a/modules/git/blame_test.go +++ b/modules/git/blame_test.go @@ -28,7 +28,7 @@ func TestReadingBlameOutput(t *testing.T) { }, { "f32b0a9dfd09a60f616f29158f772cedd89942d2", - []string{}, + []string{"", "Do not make any changes to this repo it is used for unit testing"}, }, } -- cgit v1.2.3