From 1361671910fb61a3ec9f75401c5d28a35dfeee6f Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 17 Oct 2020 19:52:23 +0200 Subject: [PATCH] Increase reading blame lines to 1MB. Fixes #12440 --- modules/git/blame.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/git/blame.go b/modules/git/blame.go index 9aa77dc65b131..ed7156d38d029 100644 --- a/modules/git/blame.go +++ b/modules/git/blame.go @@ -122,6 +122,8 @@ func createBlameReader(ctx context.Context, dir string, command ...string) (*Bla pid := process.GetManager().Add(fmt.Sprintf("GetBlame [repo_path: %s]", dir), cancel) scanner := bufio.NewScanner(stdout) + buf := make([]byte, 0, bufio.MaxScanTokenSize) + scanner.Buffer(buf, 1024*1024) return &BlameReader{ cmd,