aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/blame_test.go
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2023-02-09 04:51:02 +0100
committerGitHub <noreply@github.com>2023-02-09 11:51:02 +0800
commit87261f3fb95da92d74d72d057fc0f1e9819f16a7 (patch)
treee30f70da44045d32da463fa5128d7e429ee1f294 /modules/git/blame_test.go
parent4dd7d61ac8c8bff81a0f9e376032f45eb12f51a9 (diff)
downloadgitea-87261f3fb95da92d74d72d057fc0f1e9819f16a7.tar.gz
gitea-87261f3fb95da92d74d72d057fc0f1e9819f16a7.zip
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 <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/git/blame_test.go')
-rw-r--r--modules/git/blame_test.go2
1 files changed, 1 insertions, 1 deletions
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"},
},
}