From 84e1da37cef3eb2d5a31bd26962f6ab14d897900 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 27 Mar 2025 00:00:06 +0800 Subject: [PATCH] fix --- modules/git/repo_attribute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go index 89101e5af36cc..8a5e5fa9834ca 100644 --- a/modules/git/repo_attribute.go +++ b/modules/git/repo_attribute.go @@ -280,7 +280,7 @@ func (wr *nulSeparatedAttributeWriter) Write(p []byte) (n int, err error) { } } wr.tmp = append(wr.tmp, p...) - return len(p), nil + return l, nil } func (wr *nulSeparatedAttributeWriter) ReadAttribute() <-chan attributeTriple {